rabbitmq_cluster: cookies are 0400 after restart, set them right here too

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-02-16 12:42:20 -08:00
parent c8a77c5574
commit e753bda034

View file

@ -77,7 +77,7 @@
- name: deploy staging cookie - name: deploy staging cookie
copy: content="{{rabbitmq_cluster_cookie_staging}}" dest=/var/lib/rabbitmq/.erlang.cookie copy: content="{{rabbitmq_cluster_cookie_staging}}" dest=/var/lib/rabbitmq/.erlang.cookie
owner=rabbitmq group=rabbitmq mode=0600 owner=rabbitmq group=rabbitmq mode=0400
when: "env == 'staging'" when: "env == 'staging'"
notify: notify:
- restart rabbitmq - restart rabbitmq
@ -87,7 +87,7 @@
- name: deploy production cookie - name: deploy production cookie
copy: content="{{rabbitmq_cluster_cookie_production}}" dest=/var/lib/rabbitmq/.erlang.cookie copy: content="{{rabbitmq_cluster_cookie_production}}" dest=/var/lib/rabbitmq/.erlang.cookie
owner=rabbitmq group=rabbitmq mode=0600 owner=rabbitmq group=rabbitmq mode=0400
when: "env == 'production'" when: "env == 'production'"
notify: notify:
- restart rabbitmq - restart rabbitmq