Use proper variable in horizon copy policy task
* fix wrong variable usage for horizon copy policy task * notify restart keystone container when policy is changed Change-Id: I3545205d5d3cfcf7bf893187ca6e65bbc152bf33 Closes-Bug: #1702486
This commit is contained in:
parent
34ac75a2dc
commit
6022b61146
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user