diff options
Diffstat (limited to 'deploy/adapters/ansible/roles/congress/tasks')
3 files changed, 6 insertions, 5 deletions
diff --git a/deploy/adapters/ansible/roles/congress/tasks/congress_config.yml b/deploy/adapters/ansible/roles/congress/tasks/congress_config.yml index f40d4c22..c85057e8 100644 --- a/deploy/adapters/ansible/roles/congress/tasks/congress_config.yml +++ b/deploy/adapters/ansible/roles/congress/tasks/congress_config.yml @@ -8,7 +8,9 @@ ############################################################################## --- - name: congress db sync - shell: /usr/local/bin/congress-db-manage --config-file /etc/congress/congress.conf upgrade head + shell: | + /usr/local/bin/congress-db-manage \ + --config-file /etc/congress/congress.conf upgrade head when: inventory_hostname == haproxy_hosts.keys()[0] - name: start congress service diff --git a/deploy/adapters/ansible/roles/congress/tasks/congress_db.yml b/deploy/adapters/ansible/roles/congress/tasks/congress_db.yml index 1883509b..16832eaa 100644 --- a/deploy/adapters/ansible/roles/congress/tasks/congress_db.yml +++ b/deploy/adapters/ansible/roles/congress/tasks/congress_db.yml @@ -8,7 +8,7 @@ ############################################################################## --- - name: create congress db - mysql_db: + mysql_db: login_unix_socket: /var/run/mysqld/mysqld.sock name: "{{ item.db }}" state: present @@ -25,4 +25,3 @@ with_nested: - "{{ credentials }}" - ['%', 'localhost'] - diff --git a/deploy/adapters/ansible/roles/congress/tasks/congress_install.yml b/deploy/adapters/ansible/roles/congress/tasks/congress_install.yml index 1e620783..4269b5e6 100644 --- a/deploy/adapters/ansible/roles/congress/tasks/congress_install.yml +++ b/deploy/adapters/ansible/roles/congress/tasks/congress_install.yml @@ -30,8 +30,8 @@ - name: create congress service work dir file: path=/var/lib/congress state=directory -- name: link the congress service - file: +- name: link the congress service + file: src: /lib/systemd/system/congress.service dest: /etc/systemd/system/multi-user.target.wants/congress.service state: link |