diff options
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rabbitmq_ha_config.yml | 8 | ||||
-rw-r--r-- | tasks/rabbitmq_users.yml | 4 |
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) |