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.yml31
1 files changed, 20 insertions, 11 deletions
diff --git a/tasks/rabbitmq_ha_config.yml b/tasks/rabbitmq_ha_config.yml
index 9ebe297..cc31333 100644
--- a/tasks/rabbitmq_ha_config.yml
+++ b/tasks/rabbitmq_ha_config.yml
@@ -4,21 +4,30 @@
4 path: /usr/sbin/rabbitmqadmin 4 path: /usr/sbin/rabbitmqadmin
5 register: rabbitmqadmin_check 5 register: rabbitmqadmin_check
6 6
7- name: rabbitmq_ha_config | install rabbitMQ admin 7- name: rabbit_ha_config | Installing rabbitMQ admin
8 shell: wget http://guest:guest@localhost:15672/cli/rabbitmqadmin 8 get_url:
9 url: http://guest:guest@localhost:15672/cli/rabbitmqadmin
10 dest: /usr/sbin/rabbitmqadmin
11 mode: u=rwx,g=rw,o=rw
9 become: true 12 become: true
13 notify: restart rabbitmq-server
10 when: not rabbitmqadmin_check['stat']['exists'] 14 when: not rabbitmqadmin_check['stat']['exists']
11 15
12- name: rabbitmq_ha_config | moving the rabbitMQ Admin 16# - name: rabbitmq_ha_config | install rabbitMQ admin
13 shell: mv rabbitmqadmin /usr/sbin 17# shell: wget http://guest:guest@localhost:15672/cli/rabbitmqadmin
14 become: true 18# become: true
15 when: not rabbitmqadmin_check['stat']['exists'] 19# when: not rabbitmqadmin_check['stat']['exists']
16 20
17- name: rabbitmq_ha_config | making executable rabbitMQ Admin 21# - name: rabbitmq_ha_config | moving the rabbitMQ Admin
18 shell: chmod +x /usr/sbin/rabbitmqadmin 22# shell: mv rabbitmqadmin /usr/sbin
19 notify: restart rabbitmq-server 23# become: true
20 become: true 24# when: not rabbitmqadmin_check['stat']['exists']
21 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']
22 31
23- name: rabbitmq_ha_config | creating queue(s) 32- name: rabbitmq_ha_config | creating queue(s)
24 command: rabbitmqadmin declare queue name={{ item['queue_name'] }} durable={{ item['durable']|lower }} --vhost={{ item['vhost'] | default('/') }} 33 command: rabbitmqadmin declare queue name={{ item['queue_name'] }} durable={{ item['durable']|lower }} --vhost={{ item['vhost'] | default('/') }}