aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'tasks')
-rw-r--r--tasks/rabbitmq_clustering.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tasks/rabbitmq_clustering.yml b/tasks/rabbitmq_clustering.yml
index c95d194..c595db0 100644
--- a/tasks/rabbitmq_clustering.yml
+++ b/tasks/rabbitmq_clustering.yml
@@ -38,6 +38,7 @@
38 38
39- name: rabbitmq_clustering | joining rabbitmq cluster 39- name: rabbitmq_clustering | joining rabbitmq cluster
40 command: rabbitmqctl join_cluster 'rabbit@{{ rabbitmq_master }}' 40 command: rabbitmqctl join_cluster 'rabbit@{{ rabbitmq_master }}'
41 register: cluster_joined
41 when: inventory_hostname != "{{ rabbitmq_master }}" 42 when: inventory_hostname != "{{ rabbitmq_master }}"
42 43
43- name: rabbitmq_clustering | starting rabbitmq app 44- name: rabbitmq_clustering | starting rabbitmq app
@@ -46,4 +47,4 @@
46 47
47- name: rabbitmq_clustering | marking as clustered 48- name: rabbitmq_clustering | marking as clustered
48 file: path=/etc/rabbitmq/clustered state=touch 49 file: path=/etc/rabbitmq/clustered state=touch
49 when: cluster_master.changed 50 when: cluster_master.changed or cluster_joined.changed