kolla-ansible/ansible/roles/rabbitmq/tasks/config.yml
rthallisey a0bffb2581 Replace config-external with a JSON file for Rabbitmq
Change-Id: Ibb30af44a9362278eff012ff1145374788b06cd5
Partially-Implements: blueprint replace-config-external
2015-09-18 15:19:06 -04:00

21 lines
652 B
YAML

---
- name: Ensuring config directory exists
file:
path: "{{ node_config_directory }}/rabbitmq/"
state: "directory"
recurse: "yes"
- name: Copying over config(s)
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
with_items:
- { src: "rabbitmq-env.conf.j2",
dest: "{{ node_config_directory }}/rabbitmq/rabbitmq-env.conf" }
- { src: "rabbitmq.config.j2",
dest: "{{ node_config_directory }}/rabbitmq/rabbitmq.config" }
- name: Copying Rabbitmq JSON configuration file
template:
src: "roles/rabbitmq/templates/rabbitmq.json.j2"
dest: "{{ node_config_directory }}/rabbitmq/config.json"