aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'tasks')
-rw-r--r--tasks/debian.yml6
-rw-r--r--tasks/main.yml3
-rw-r--r--tasks/rabbitmq_ha_config.yml18
3 files changed, 8 insertions, 19 deletions
diff --git a/tasks/debian.yml b/tasks/debian.yml
index c98ff68..317932e 100644
--- a/tasks/debian.yml
+++ b/tasks/debian.yml
@@ -20,6 +20,8 @@
20 url: https://bintray.com/user/downloadSubjectPublicKey?username=rabbitmq-erlang 20 url: https://bintray.com/user/downloadSubjectPublicKey?username=rabbitmq-erlang
21 state: present 21 state: present
22 become: true 22 become: true
23 register: result
24 until: result is successful
23 when: rabbitmq_debian_erlang_from_rabbit 25 when: rabbitmq_debian_erlang_from_rabbit
24 26
25- name: debian | add Rabbitmq erlang repo 27- name: debian | add Rabbitmq erlang repo
@@ -34,8 +36,10 @@
34 name: ['rabbitmq-server'] 36 name: ['rabbitmq-server']
35 state: present 37 state: present
36 become: true 38 become: true
39 register: result
40 until: result is successful
37 with_items: 41 with_items:
38 - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'')}} 42 - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'') }}
39 43
40- name: debian | enabling the RabbitMQ Management Console 44- name: debian | enabling the RabbitMQ Management Console
41 rabbitmq_plugin: 45 rabbitmq_plugin:
diff --git a/tasks/main.yml b/tasks/main.yml
index 8905c0b..3205473 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -15,7 +15,8 @@
15 when: rabbitmq_config_service 15 when: rabbitmq_config_service
16 16
17- name: checking to see if already clustered 17- name: checking to see if already clustered
18 stat: path=/etc/rabbitmq/clustered 18 stat:
19 path: /etc/rabbitmq/clustered
19 become: true 20 become: true
20 register: clustered 21 register: clustered
21 22
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