diff options
author | Larry Smith Jr <larry.e.smith.jr@gmail.com> | 2015-08-09 09:21:36 -0400 |
---|---|---|
committer | Larry Smith Jr <larry.e.smith.jr@gmail.com> | 2015-08-09 09:21:36 -0400 |
commit | 19b4493522b98f36fcfcecad774ff7868e003783 (patch) | |
tree | a2f46f92993f45651a82ee653994d46d93758a55 /tasks | |
parent | d5d7b0143d15d5673c0b0df4eaa00f0225d8f374 (diff) | |
download | ansible-rabbitmq-19b4493522b98f36fcfcecad774ff7868e003783.tar.gz ansible-rabbitmq-19b4493522b98f36fcfcecad774ff7868e003783.tar.zst ansible-rabbitmq-19b4493522b98f36fcfcecad774ff7868e003783.zip |
updated setting erlang cookie method
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rabbitmq_clustering.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tasks/rabbitmq_clustering.yml b/tasks/rabbitmq_clustering.yml index c595db0..4d8dd0d 100644 --- a/tasks/rabbitmq_clustering.yml +++ b/tasks/rabbitmq_clustering.yml | |||
@@ -8,8 +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 | ||
12 | shell: cat /var/lib/rabbitmq/.erlang.cookie | ||
13 | register: erlang_cookie | ||
14 | when: inventory_hostname == "{{ rabbitmq_master }}" | ||
15 | |||
11 | - name: rabbitmq_clustering | copy erlang cookie | 16 | - name: rabbitmq_clustering | copy erlang cookie |
12 | template: src=erlang.cookie.j2 dest=/var/lib/rabbitmq/.erlang.cookie 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 }}" | ||
13 | 19 | ||
14 | - name: rabbitmq_clustering | restarting rabbitmq-server on master | 20 | - name: rabbitmq_clustering | restarting rabbitmq-server on master |
15 | service: name=rabbitmq-server state=restarted | 21 | service: name=rabbitmq-server state=restarted |