aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/heat/tasks/config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/heat/tasks/config.yml')
-rw-r--r--ansible/roles/heat/tasks/config.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/ansible/roles/heat/tasks/config.yml b/ansible/roles/heat/tasks/config.yml
index 41b9effaf..dca462a50 100644
--- a/ansible/roles/heat/tasks/config.yml
+++ b/ansible/roles/heat/tasks/config.yml
@@ -42,3 +42,14 @@
- "heat-api"
- "heat-api-cfn"
- "heat-engine"
+
+- name: Check if policies shall be overwritten
+ local_action: stat path="{{ node_custom_config }}/heat/policy.json"
+ register: heat_policy
+
+- name: Copying over existing policy.json
+ template:
+ src: "{{ node_custom_config }}/heat/policy.json"
+ dest: "{{ node_config_directory }}/heat/policy.json"
+ when:
+ heat_policy.stat.exists