aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/congress
diff options
context:
space:
mode:
authorliyuenan <liyuenan@huawei.com>2016-12-27 17:44:34 +0800
committerliyuenan <liyuenan@huawei.com>2017-01-05 09:42:35 +0800
commit92f6ca7bb6d7b2f295406aab34094b1dba76ff94 (patch)
treec4e62927a3bf9862f7ba9ce286cbece2c4335ef4 /deploy/adapters/ansible/roles/congress
parent6072a49adb33f2bce3f48b9c7b8be7d96cf8501c (diff)
Yamllint test
JIRA: COMPASS-516 Change-Id: I482ce9bc86f4f963258c5b8823e0b00e83556eef Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/congress')
-rw-r--r--deploy/adapters/ansible/roles/congress/tasks/congress_config.yml4
-rw-r--r--deploy/adapters/ansible/roles/congress/tasks/congress_db.yml3
-rw-r--r--deploy/adapters/ansible/roles/congress/tasks/congress_install.yml4
-rw-r--r--deploy/adapters/ansible/roles/congress/vars/Debian.yml2
4 files changed, 7 insertions, 6 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
diff --git a/deploy/adapters/ansible/roles/congress/vars/Debian.yml b/deploy/adapters/ansible/roles/congress/vars/Debian.yml
index 1cc4645e..36aba73e 100644
--- a/deploy/adapters/ansible/roles/congress/vars/Debian.yml
+++ b/deploy/adapters/ansible/roles/congress/vars/Debian.yml
@@ -12,7 +12,7 @@ packages:
- python-congressclient
- python-cloudfoundryclient
-service:
+service:
- congress
credentials: