aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/rabbitmq_clustering.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/rabbitmq_clustering.yml')
-rw-r--r--tasks/rabbitmq_clustering.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/tasks/rabbitmq_clustering.yml b/tasks/rabbitmq_clustering.yml
index a87bb2b..40a776f 100644
--- a/tasks/rabbitmq_clustering.yml
+++ b/tasks/rabbitmq_clustering.yml
@@ -22,27 +22,27 @@
22 22
23- name: rabbitmq_clustering | sending sigterm to any running rabbitmq processes 23- name: rabbitmq_clustering | sending sigterm to any running rabbitmq processes
24 shell: pkill -u rabbitmq || true 24 shell: pkill -u rabbitmq || true
25 when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed 25 when: inventory_hostname != "{{ rabbitmq_master }}"
26 26
27- name: rabbitmq_clustering | restarting rabbitmq-server 27- name: rabbitmq_clustering | restarting rabbitmq-server
28 service: name=rabbitmq-server state=restarted 28 service: name=rabbitmq-server state=restarted
29 when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed 29 when: inventory_hostname != "{{ rabbitmq_master }}"
30 30
31- name: rabbitmq_clustering | stopping rabbitmq app 31- name: rabbitmq_clustering | stopping rabbitmq app
32 command: rabbitmqctl stop_app 32 command: rabbitmqctl stop_app
33 when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed 33 when: inventory_hostname != "{{ rabbitmq_master }}"
34 34
35- name: rabbitmq_clustering | resetting rabbitmq app 35- name: rabbitmq_clustering | resetting rabbitmq app
36 command: rabbitmqctl reset 36 command: rabbitmqctl reset
37 when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed 37 when: inventory_hostname != "{{ rabbitmq_master }}"
38 38
39- name: rabbitmq_clustering | joining rabbitmq cluster 39- name: rabbitmq_clustering | joining rabbitmq cluster
40 command: rabbitmqctl join_cluster 'rabbit@{{ master_rabbit_node }}' 40 command: rabbitmqctl join_cluster 'rabbit@{{ master_rabbit_node }}'
41 when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed 41 when: inventory_hostname != "{{ rabbitmq_master }}"
42 42
43- name: rabbitmq_clustering | starting rabbitmq app 43- name: rabbitmq_clustering | starting rabbitmq app
44 command: rabbitmqctl start_app 44 command: rabbitmqctl start_app
45 when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed 45 when: inventory_hostname != "{{ rabbitmq_master }}"
46 46
47- name: rabbitmq_clustering | marking as clustered 47- name: rabbitmq_clustering | marking as clustered
48 file: path=/etc/rabbitmq/clustered state=touch 48 file: path=/etc/rabbitmq/clustered state=touch