Update heat db sync task 37/17237/1
authorQiLiang <liangqi1@huawei.com>
Wed, 20 Jul 2016 23:04:14 +0000 (07:04 +0800)
committerQiLiang <liangqi1@huawei.com>
Wed, 20 Jul 2016 23:05:35 +0000 (07:05 +0800)
JIRA: COMPASS-442

Change-Id: Id51d8b76d62255cf91b04d4770eb9a4b307ad102
Signed-off-by: QiLiang <liangqi1@huawei.com>
deploy/adapters/ansible/roles/heat/tasks/heat_config.yml
deploy/adapters/ansible/roles/heat/tasks/main.yml

index a24e2f8..911a19e 100644 (file)
@@ -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
 
index 886907e..8fe31c1 100644 (file)
@@ -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