kolla-ansible/ansible/roles/rabbitmq/tasks/config.yml
Sam Yaple d01e9a43dd Use rabbitmq-clusterer when deploying
Change-Id: I2a9c6fa16444a2142ab77f58d188eda84a2e59fd
Partially-Implements: blueprint rabbitmq-clusterer
2015-11-03 04:51:45 +00:00

24 lines
781 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" }
- { src: "rabbitmq_clusterer.config.j2",
dest: "{{ node_config_directory }}/rabbitmq/rabbitmq_clusterer.config" }
- name: Copying Rabbitmq JSON configuration file
template:
src: "roles/rabbitmq/templates/rabbitmq.json.j2"
dest: "{{ node_config_directory }}/rabbitmq/config.json"