diff options
author | Larry Smith Jr <larry.e.smith.jr@gmail.com> | 2015-08-06 21:40:45 -0400 |
---|---|---|
committer | Larry Smith Jr <larry.e.smith.jr@gmail.com> | 2015-08-06 21:40:45 -0400 |
commit | a256c9de92b402e8a1f2098fa841282163e82daa (patch) | |
tree | 87ff94c32b4922fa3bc5c9c5985561f061e730fe /tasks | |
parent | 9658075b826dbf1206e7d9f689b242acfeb61b3d (diff) | |
download | ansible-rabbitmq-a256c9de92b402e8a1f2098fa841282163e82daa.tar.gz ansible-rabbitmq-a256c9de92b402e8a1f2098fa841282163e82daa.tar.zst ansible-rabbitmq-a256c9de92b402e8a1f2098fa841282163e82daa.zip |
removed when changed
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rabbitmq_clustering.yml | 12 |
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 |