]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/commitdiff
fixed stat check
authorLarry Smith Jr <larry.e.smith.jr@gmail.com>
Fri, 7 Aug 2015 02:06:05 +0000 (22:06 -0400)
committerLarry Smith Jr <larry.e.smith.jr@gmail.com>
Fri, 7 Aug 2015 02:06:05 +0000 (22:06 -0400)
tasks/rabbitmq_clustering.yml

index c95d194055d1ff8ba7ad6e0148209abe255472be..c595db0c4a6ca79f2eed24ea0fcf6204cfe4b37d 100644 (file)
@@ -38,6 +38,7 @@
 
 - name: rabbitmq_clustering | joining rabbitmq cluster
   command: rabbitmqctl join_cluster 'rabbit@{{ rabbitmq_master }}'
+  register: cluster_joined
   when: inventory_hostname != "{{ rabbitmq_master }}"
 
 - name: rabbitmq_clustering | starting rabbitmq app
@@ -46,4 +47,4 @@
 
 - name: rabbitmq_clustering | marking as clustered
   file: path=/etc/rabbitmq/clustered state=touch
-  when: cluster_master.changed
+  when: cluster_master.changed or cluster_joined.changed