summaryrefslogtreecommitdiffstats
path: root/deploy/adapters
diff options
context:
space:
mode:
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