aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/rabbitmq_clustering.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/rabbitmq_clustering.yml')
-rw-r--r--tasks/rabbitmq_clustering.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/tasks/rabbitmq_clustering.yml b/tasks/rabbitmq_clustering.yml
index 4d8dd0d..348662a 100644
--- a/tasks/rabbitmq_clustering.yml
+++ b/tasks/rabbitmq_clustering.yml
@@ -8,14 +8,14 @@
8- name: rabbitmq_clustering | stopping rabbitmq-server 8- name: rabbitmq_clustering | stopping rabbitmq-server
9 service: name=rabbitmq-server state=stopped 9 service: name=rabbitmq-server state=stopped
10 10
11- name: grabbing erlang cookie 11#- name: grabbing erlang cookie
12 shell: cat /var/lib/rabbitmq/.erlang.cookie 12# shell: cat /var/lib/rabbitmq/.erlang.cookie
13 register: erlang_cookie 13# register: erlang_cookie
14 when: inventory_hostname == "{{ rabbitmq_master }}" 14# when: inventory_hostname == "{{ rabbitmq_master }}"
15 15
16- name: rabbitmq_clustering | copy erlang cookie 16- name: rabbitmq_clustering | copy erlang cookie
17 template: src=erlang.cookie.j2 dest={{ erlang_cookie_file }} owner=rabbitmq group=rabbitmq mode=0400 backup=yes 17 template: src=erlang.cookie.j2 dest={{ erlang_cookie_file }} owner=rabbitmq group=rabbitmq mode=0400 backup=yes
18 when: inventory_hostname != "{{ rabbitmq_master }}" 18# when: inventory_hostname != "{{ rabbitmq_master }}"
19 19
20- name: rabbitmq_clustering | restarting rabbitmq-server on master 20- name: rabbitmq_clustering | restarting rabbitmq-server on master
21 service: name=rabbitmq-server state=restarted 21 service: name=rabbitmq-server state=restarted