summaryrefslogtreecommitdiffstats
path: root/deploy/adapters
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-07-21 07:04:14 +0800
committerQiLiang <liangqi1@huawei.com>2016-07-21 07:05:35 +0800
commit3c11886942256c365ee690fbea43741ad1e34f44 (patch)
tree7ade960c44a9d6d8edf8fdc2173bb8fdb2c03bcb /deploy/adapters
parent40a6c4a7c4729fedd88abf823a50807a3deba50e (diff)
Update heat db sync task
JIRA: COMPASS-442 Change-Id: Id51d8b76d62255cf91b04d4770eb9a4b307ad102 Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'deploy/adapters')
-rw-r--r--deploy/adapters/ansible/roles/heat/tasks/heat_config.yml1
-rw-r--r--deploy/adapters/ansible/roles/heat/tasks/main.yml2
2 files changed, 1 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/heat/tasks/heat_config.yml b/deploy/adapters/ansible/roles/heat/tasks/heat_config.yml
index a24e2f80..911a19ed 100644
--- a/deploy/adapters/ansible/roles/heat/tasks/heat_config.yml
+++ b/deploy/adapters/ansible/roles/heat/tasks/heat_config.yml
@@ -9,7 +9,6 @@
---
- name: heat db sync
shell: su -s /bin/sh -c "heat-manage db_sync" heat
- ignore_errors: True
notify:
- restart heat service
diff --git a/deploy/adapters/ansible/roles/heat/tasks/main.yml b/deploy/adapters/ansible/roles/heat/tasks/main.yml
index 886907eb..8fe31c15 100644
--- a/deploy/adapters/ansible/roles/heat/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/heat/tasks/main.yml
@@ -14,7 +14,7 @@
- heat
- include: heat_config.yml
- when: HA_CLUSTER is not defined or HA_CLUSTER[inventory_hostname] == ''
+ when: inventory_hostname == groups['controller'][0]
tags:
- config
- heat_config