aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
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
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')
-rw-r--r--tasks/rabbitmq_ha_config.yml8
-rw-r--r--tasks/rabbitmq_users.yml4
2 files changed, 6 insertions, 6 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
diff --git a/tasks/rabbitmq_users.yml b/tasks/rabbitmq_users.yml
index e14d390..3e1997a 100644
--- a/tasks/rabbitmq_users.yml
+++ b/tasks/rabbitmq_users.yml
@@ -9,7 +9,7 @@
9 write_priv: "{{ item.write_priv }}" 9 write_priv: "{{ item.write_priv }}"
10 tags: "{{ item.tags }}" 10 tags: "{{ item.tags }}"
11 state: present 11 state: present
12 with_items: rabbitmq_users 12 with_items: "{{ rabbitmq_users }}"
13 when: (enable_rabbitmq_clustering is defined and not enable_rabbitmq_clustering) or enable_rabbitmq_clustering is not defined 13 when: (enable_rabbitmq_clustering is defined and not enable_rabbitmq_clustering) or enable_rabbitmq_clustering is not defined
14 14
15- name: rabbitmq_users | creating rabbitmq users 15- name: rabbitmq_users | creating rabbitmq users
@@ -23,5 +23,5 @@
23 tags: "{{ item.tags }}" 23 tags: "{{ item.tags }}"
24 state: present 24 state: present
25 run_once: yes 25 run_once: yes
26 with_items: rabbitmq_users 26 with_items: "{{ rabbitmq_users }}"
27 when: (enable_rabbitmq_clustering is defined and enable_rabbitmq_clustering) 27 when: (enable_rabbitmq_clustering is defined and enable_rabbitmq_clustering)