diff --git a/tasks/neutron_pre_install.yml b/tasks/neutron_pre_install.yml index a83e6de6..a15d6d9d 100644 --- a/tasks/neutron_pre_install.yml +++ b/tasks/neutron_pre_install.yml @@ -58,6 +58,7 @@ owner: "{{ item.owner | default(neutron_system_user_name) }}" group: "{{ item.group | default(neutron_system_group_name) }}" mode: "{{ item.mode | default(omit) }}" + recurse: "{{ item.recurse | default(omit) }}" when: - (item.condition | default(true)) | bool with_items: @@ -72,6 +73,10 @@ group: "root" - path: "{{ neutron_system_home_folder }}" mode: "0755" + - path: "{{ neutron_system_home_folder }}/ovn-metadata-proxy" + mode: "u=rwX,g=rX,o=rX" + recurse: True + condition: "{{ (neutron_plugin_type == 'ml2.ovn' and neutron_services['neutron-ovn-metadata-agent']['group'] in group_names) }}" - path: "{{ neutron_system_home_folder }}/ha_confs" state: "{{ (neutron_plugin_type == 'ml2.ovn') | ternary('absent', 'directory') }}"