3ac7da64d1
Add set_configs function that implements the flow from the proposed ansible-multi spec. Move start.sh to config-internal.sh to preserve existing behaviour. config-externall.sh copies the appropriate configs in from the bind'd location and sets permissions and ownership appropriately. Partially Implements: blueprint ansible-multi Change-Id: I53fca0660451087f273fefc3c63e0d8cf1a2c096
25 lines
613 B
YAML
25 lines
613 B
YAML
---
|
|
- name: Ensuring templates config directory exists
|
|
file:
|
|
path: "{{ node_templates_directory }}/{{ project_name }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
|
|
- name: Ensuring config directory exists
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ project_name }}"
|
|
state: "directory"
|
|
|
|
- name: Copying over config(s)
|
|
template:
|
|
src: "{{ item.0 }}"
|
|
dest: "{{ item.1 }}"
|
|
with_together:
|
|
- config_source
|
|
- config_template_dest
|
|
|
|
- name: Merging the config files and saving to the final destination
|
|
merge_configs:
|
|
sources: "{{ config_template_dest }}"
|
|
dest: "{{ config_dest }}"
|