kolla-ansible/ansible/roles/rally/tasks/config.yml
zhubingbing d3d3472326 Implement Ansible rally role
Change-Id: I647c38adbfd00c70874cf51c0bfcb68d243e26cc
Partially-Implements: blueprint rally-role
2016-09-07 02:07:04 +00:00

27 lines
646 B
YAML

---
- name: Ensuring config directories exist
file:
path: "{{ node_config_directory }}/{{ item }}"
state: "directory"
recurse: yes
with_items:
- "rally"
- name: Copying over config.json files for services
template:
src: "{{ item }}.json.j2"
dest: "{{ node_config_directory }}/{{ item }}/config.json"
with_items:
- "rally"
- name: Copying over rally.conf
merge_configs:
vars:
project_name: "rally"
sources:
- "{{ role_path }}/templates/rally.conf.j2"
- "{{ node_custom_config }}/rally.conf"
dest: "{{ node_config_directory }}/{{ item }}/rally.conf"
with_items:
- "rally"