aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/rabbitmq_ha_config.yml
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2016-11-26 08:24:37 -0500
committerGitHub <noreply@github.com>2016-11-26 08:24:37 -0500
commit6b75df2e01f267bf7153baa310d794b7e9bae143 (patch)
treed8d460965b5f62c373cb4e531f52bf4340106a0e /tasks/rabbitmq_ha_config.yml
parent2922c75a7fce9ba62d1d78a50bca7f14e707cd9d (diff)
parentba5539ac53425365b3b8b0651dd0d42c6fed45fe (diff)
downloadansible-rabbitmq-6b75df2e01f267bf7153baa310d794b7e9bae143.tar.gz
ansible-rabbitmq-6b75df2e01f267bf7153baa310d794b7e9bae143.tar.zst
ansible-rabbitmq-6b75df2e01f267bf7153baa310d794b7e9bae143.zip
Merge pull request #4 from dzimine/DZ/fix_with_items_v2
Fix with_items argument
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