Merge "Do not remove policy.yaml file"
This commit is contained in:
@@ -68,7 +68,7 @@
|
|||||||
- Restart neutron services
|
- Restart neutron services
|
||||||
- Restart uwsgi services
|
- Restart uwsgi services
|
||||||
|
|
||||||
- name: Implement policy.yaml if there are overrides configured
|
- name: Implement policy.yaml file
|
||||||
openstack.config_template.config_template:
|
openstack.config_template.config_template:
|
||||||
content: "{{ neutron_policy_overrides }}"
|
content: "{{ neutron_policy_overrides }}"
|
||||||
dest: "{{ neutron_conf_version_dir }}/policy.yaml"
|
dest: "{{ neutron_conf_version_dir }}/policy.yaml"
|
||||||
@@ -77,16 +77,7 @@
|
|||||||
mode: "0640"
|
mode: "0640"
|
||||||
config_type: yaml
|
config_type: yaml
|
||||||
when:
|
when:
|
||||||
- neutron_policy_overrides | length > 0
|
- neutron_services['neutron-server']['group'] in group_names
|
||||||
tags:
|
|
||||||
- neutron-policy-override
|
|
||||||
|
|
||||||
- name: Remove legacy policy.yaml file
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ neutron_conf_dir }}/policy.yaml"
|
|
||||||
state: absent
|
|
||||||
when:
|
|
||||||
- neutron_policy_overrides | length == 0
|
|
||||||
tags:
|
tags:
|
||||||
- neutron-policy-override
|
- neutron-policy-override
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user