diff --git a/ansible/roles/kolla-openstack/tasks/config.yml b/ansible/roles/kolla-openstack/tasks/config.yml index bdb9934ca..efd55cb73 100644 --- a/ansible/roles/kolla-openstack/tasks/config.yml +++ b/ansible/roles/kolla-openstack/tasks/config.yml @@ -59,6 +59,7 @@ find: path: "{{ item.src }}" patterns: "{{ item.patterns }}" + recurse: yes with_items: "{{ kolla_openstack_custom_config }}" register: find_src_result @@ -72,7 +73,7 @@ - name: Ensure extra configuration files exist template: src: "{{ item.1.path }}" - dest: "{{ item.0.item.dest }}/{{ item.1.path | basename }}" + dest: "{{ item.0.item.dest }}/{{ item.1.path | relpath(item.0.item.src) }}" mode: 0640 with_subelements: - "{{ find_src_result.results }}"