aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/rabbitmq_ha_config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/rabbitmq_ha_config.yml')
-rw-r--r--tasks/rabbitmq_ha_config.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/tasks/rabbitmq_ha_config.yml b/tasks/rabbitmq_ha_config.yml
index 3cbc382..8811b6d 100644
--- a/tasks/rabbitmq_ha_config.yml
+++ b/tasks/rabbitmq_ha_config.yml
@@ -20,7 +20,7 @@
20- name: rabbitmq_ha_config | creating queue(s) 20- name: rabbitmq_ha_config | creating queue(s)
21 command: rabbitmqadmin declare queue name={{ item.queue_name }} durable={{ item.durable|lower }} 21 command: rabbitmqadmin declare queue name={{ item.queue_name }} durable={{ item.durable|lower }}
22 run_once: true 22 run_once: true
23 with_items: rabbitmq_config 23 with_items: "{{ rabbitmq_config }}"
24 24
25- name: rabbitmq_ha_config | setting up ha on queue(s) 25- name: rabbitmq_ha_config | setting up ha on queue(s)
26 rabbitmq_policy: 26 rabbitmq_policy:
@@ -29,16 +29,16 @@
29 tags: "{{ item.tags }}" 29 tags: "{{ item.tags }}"
30 state: present 30 state: present
31 run_once: true 31 run_once: true
32 with_items: rabbitmq_config 32 with_items: "{{ rabbitmq_config }}"
33 33
34- name: rabbitmq_ha_config | creating exchange(s) 34- name: rabbitmq_ha_config | creating exchange(s)
35 command: rabbitmqadmin declare exchange name={{ item.exchange_name }} type={{ item.type }} 35 command: rabbitmqadmin declare exchange name={{ item.exchange_name }} type={{ item.type }}
36 run_once: true 36 run_once: true
37 with_items: rabbitmq_config 37 with_items: "{{ rabbitmq_config }}"
38 when: item.exchange_name is defined 38 when: item.exchange_name is defined
39 39
40- name: rabbitmq_ha_config | creating binding(s) 40- name: rabbitmq_ha_config | creating binding(s)
41 command: rabbitmqadmin declare binding source={{ item.exchange_name }} destination_type="queue" destination={{ item.queue_name }} routing_key={{ item.routing_key }} 41 command: rabbitmqadmin declare binding source={{ item.exchange_name }} destination_type="queue" destination={{ item.queue_name }} routing_key={{ item.routing_key }}
42 run_once: true 42 run_once: true
43 with_items: rabbitmq_config 43 with_items: "{{ rabbitmq_config }}"
44 when: item.exchange_name is defined 44 when: item.exchange_name is defined