e7a7cc9017
Adds support for glance in ansible Partially-Implements: blueprint ansible-service Change-Id: I2d162e79f85877116b0e33b1843de6ccb62a445a
25 lines
613 B
YAML
25 lines
613 B
YAML
---
|
|
- name: Ensuring templates config directory exists
|
|
file:
|
|
path: "{{ node_templates_directory }}/{{ service_name }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
|
|
- name: Ensuring config directory exists
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ service_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 }}"
|