From a256c9de92b402e8a1f2098fa841282163e82daa Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Thu, 6 Aug 2015 21:40:45 -0400 Subject: removed when changed --- tasks/rabbitmq_clustering.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tasks') 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 @@ - name: rabbitmq_clustering | sending sigterm to any running rabbitmq processes shell: pkill -u rabbitmq || true - when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed + when: inventory_hostname != "{{ rabbitmq_master }}" - name: rabbitmq_clustering | restarting rabbitmq-server service: name=rabbitmq-server state=restarted - when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed + when: inventory_hostname != "{{ rabbitmq_master }}" - name: rabbitmq_clustering | stopping rabbitmq app command: rabbitmqctl stop_app - when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed + when: inventory_hostname != "{{ rabbitmq_master }}" - name: rabbitmq_clustering | resetting rabbitmq app command: rabbitmqctl reset - when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed + when: inventory_hostname != "{{ rabbitmq_master }}" - name: rabbitmq_clustering | joining rabbitmq cluster command: rabbitmqctl join_cluster 'rabbit@{{ master_rabbit_node }}' - when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed + when: inventory_hostname != "{{ rabbitmq_master }}" - name: rabbitmq_clustering | starting rabbitmq app command: rabbitmqctl start_app - when: inventory_hostname != "{{ rabbitmq_master }}" and cluster_master.changed + when: inventory_hostname != "{{ rabbitmq_master }}" - name: rabbitmq_clustering | marking as clustered file: path=/etc/rabbitmq/clustered state=touch -- cgit v1.2.3