kolla/ansible/roles/config.yml
Sam Yaple e7a7cc9017 Ansible Glance support
Adds support for glance in ansible

Partially-Implements: blueprint ansible-service
Change-Id: I2d162e79f85877116b0e33b1843de6ccb62a445a
2015-07-09 15:29:55 +00:00

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 }}"