odcs / rabbitmq: fix task that was running locally, fix password to be right and not overwrite

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-08-15 20:17:05 +00:00 committed by Pierre-Yves Chibon
parent c67b7dd277
commit 261bb54d21

View file

@ -71,6 +71,8 @@
- odcs/backend
- name: Configure the HA policy for the odcs queues
run_once: true
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
rabbitmq_policy:
name: HA
apply_to: queues
@ -145,8 +147,10 @@
- odcs/backend
- name: Dump the admin password in a file for administrative operations
run_once: true
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
copy:
dest: /root/.rabbitmqpass
dest: /root/.odcs-rabbitmqpass
content: "{{ (env == 'production')|ternary(rabbitmq_odcs_admin_password_production, rabbitmq_odcs_admin_password_staging) }}"
mode: 0600
owner: root