diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-12-19 09:52:51 -0500 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-12-19 09:52:51 -0500 |
commit | 613299cd31700e78599dedf0f19f78fe4876c207 (patch) | |
tree | ef6f5534010bb524d83bf0b92edfb877aaf525fd /tasks/rabbitmq_ha_config.yml | |
parent | d62baac66345ed735443cbb648e684923fed7d17 (diff) | |
download | ansible-rabbitmq-613299cd31700e78599dedf0f19f78fe4876c207.tar.gz ansible-rabbitmq-613299cd31700e78599dedf0f19f78fe4876c207.tar.zst ansible-rabbitmq-613299cd31700e78599dedf0f19f78fe4876c207.zip |
First commit of refactoring
Diffstat (limited to 'tasks/rabbitmq_ha_config.yml')
-rw-r--r-- | tasks/rabbitmq_ha_config.yml | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/tasks/rabbitmq_ha_config.yml b/tasks/rabbitmq_ha_config.yml index d3e4aa2..0048b0c 100644 --- a/tasks/rabbitmq_ha_config.yml +++ b/tasks/rabbitmq_ha_config.yml | |||
@@ -13,22 +13,6 @@ | |||
13 | notify: restart rabbitmq-server | 13 | notify: restart rabbitmq-server |
14 | when: not rabbitmqadmin_check['stat']['exists'] | 14 | when: not rabbitmqadmin_check['stat']['exists'] |
15 | 15 | ||
16 | # - name: rabbitmq_ha_config | install rabbitMQ admin | ||
17 | # shell: wget http://guest:guest@localhost:15672/cli/rabbitmqadmin | ||
18 | # become: true | ||
19 | # when: not rabbitmqadmin_check['stat']['exists'] | ||
20 | |||
21 | # - name: rabbitmq_ha_config | moving the rabbitMQ Admin | ||
22 | # shell: mv rabbitmqadmin /usr/sbin | ||
23 | # become: true | ||
24 | # when: not rabbitmqadmin_check['stat']['exists'] | ||
25 | |||
26 | # - name: rabbitmq_ha_config | making executable rabbitMQ Admin | ||
27 | # shell: chmod +x /usr/sbin/rabbitmqadmin | ||
28 | # notify: restart rabbitmq-server | ||
29 | # become: true | ||
30 | # when: not rabbitmqadmin_check['stat']['exists'] | ||
31 | |||
32 | - name: rabbitmq_ha_config | creating queue(s) | 16 | - name: rabbitmq_ha_config | creating queue(s) |
33 | command: rabbitmqadmin declare queue name={{ item['queue_name'] }} durable={{ item['durable']|lower }} | 17 | command: rabbitmqadmin declare queue name={{ item['queue_name'] }} durable={{ item['durable']|lower }} |
34 | run_once: true | 18 | run_once: true |
@@ -37,7 +21,7 @@ | |||
37 | 21 | ||
38 | - name: rabbitmq_ha_config | setting up ha on queue(s) | 22 | - name: rabbitmq_ha_config | setting up ha on queue(s) |
39 | rabbitmq_policy: | 23 | rabbitmq_policy: |
40 | name: "ha-all" | 24 | name: ha-all |
41 | pattern: "{{ item['queue_name'] }}" | 25 | pattern: "{{ item['queue_name'] }}" |
42 | tags: "{{ item['tags'] }}" | 26 | tags: "{{ item['tags'] }}" |
43 | state: present | 27 | state: present |