Merge "Use proper variable in horizon copy policy task"

This commit is contained in:
Jenkins 2017-07-05 15:17:26 +00:00 committed by Gerrit Code Review
commit 30d9549064

View File

@ -88,8 +88,8 @@
vars:
horizon: "{{ horizon_services['horizon'] }}"
template:
src: "{{ node_custom_config }}/horizon/{{ item[0]['name'] }}_policy.json"
dest: "{{ node_config_directory }}/horizon/{{ item[0]['name'] }}_policy.json"
src: "{{ node_custom_config }}/horizon/{{ item.item.name }}_policy.json"
dest: "{{ node_config_directory }}/horizon/{{ item.item.name }}_policy.json"
register: policy_jsons
when:
- horizon.enabled | bool
@ -97,6 +97,8 @@
- item.item.enabled | bool
- item.stat.exists
with_items: "{{ custom_policy.results }}"
notify:
- Restart horizon container
- name: Check horizon container
vars: