Skip to content
Snippets Groups Projects
Commit e8e459b7 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "create parent directories for extra config files"

parents 5f56c5ac d4a0da99
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,19 @@ ...@@ -78,6 +78,19 @@
with_items: "{{ kolla_openstack_custom_config }}" with_items: "{{ kolla_openstack_custom_config }}"
register: find_dest_result register: find_dest_result
- name: Ensure extra configuration parent directories are present
file:
path: "{{ item.0.item.dest }}/{{ item.1.path | relpath(item.0.item.src) | dirname }}"
recurse: true
state: directory
with_subelements:
- "{{ find_src_result.results }}"
- files
- skip_missing: true
when:
- item.0.item.enabled | bool
- item.1.path | basename not in item.0.item.ignore | default([])
- name: Ensure extra configuration files exist - name: Ensure extra configuration files exist
template: template:
src: "{{ item.1.path }}" src: "{{ item.1.path }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment