aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorLarry Smith Jr <larry.e.smith.jr@gmail.com>2015-08-06 22:06:05 -0400
committerLarry Smith Jr <larry.e.smith.jr@gmail.com>2015-08-06 22:06:05 -0400
commit0cd9a5e6e3d1d5a0ba9d9850b5d85f6e196f06a8 (patch)
treee1ac2840a6f9c49a3d5d46840aa48dd63f0ab929 /tasks
parent71120079ebad6c0a479072cad8fee7b210b892db (diff)
downloadansible-rabbitmq-0cd9a5e6e3d1d5a0ba9d9850b5d85f6e196f06a8.tar.gz
ansible-rabbitmq-0cd9a5e6e3d1d5a0ba9d9850b5d85f6e196f06a8.tar.zst
ansible-rabbitmq-0cd9a5e6e3d1d5a0ba9d9850b5d85f6e196f06a8.zip
fixed stat check
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