diff --git a/playbooks/install-storage.yml b/playbooks/install-storage.yml index 23289d0..21254f9 100644 --- a/playbooks/install-storage.yml +++ b/playbooks/install-storage.yml @@ -1,51 +1,53 @@ - hosts: cassandra-clients tasks: - name: "set rpc server source location" set_fact: storage_source: "/home/{{ansible_user}}/swh-storage" - name: "get swh-storage-cassandra's source" git: dest: "{{storage_source}}" repo: "https://forge.softwareheritage.org/source/swh-storage-cassandra.git" version: "cassandra-backend2" remote: "origin-cassandra" force: yes - name: "write dummy version file" # to please vcversioner copy: content: "0.0.999999--" dest: "{{storage_source}}/version.txt" - name: "install swh-storage-cassandra" shell: "python3 setup.py develop --user" args: chdir: "{{storage_source}}" + environment: + CASS_DRIVER_BUILD_CONCURRENCY: 8 - name: "copy rpc server config file" template: src: "storage_cassandra.yml" dest: "/home/{{ansible_user}}/storage_cassandra.yml" - name: "create systemd unit dir" file: path: "/home/{{ansible_user}}/.config/systemd/user/" state: directory - name: "install swh-storage-cassandra systemd unit" template: src: "swh-storage-cassandra@.service" dest: "/home/{{ansible_user}}/.config/systemd/user/swh-storage-cassandra@.service" - name: "enable systemd unit" systemd: name: "swh-storage-cassandra@{{item}}.service" enabled: yes user: yes daemon_reload: yes # https://github.com/ansible/ansible/issues/36585 with_items: "{{swh_storage_ports}}" - name: "start swh-storage-cassandra" systemd: name: "swh-storage-cassandra@{{item}}.service" state: restarted user: yes with_items: "{{swh_storage_ports}}"