From 261bb54d21e2aaa7e459f366997b8d58df17b1c3 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 15 Aug 2019 20:17:05 +0000 Subject: [PATCH] odcs / rabbitmq: fix task that was running locally, fix password to be right and not overwrite Signed-off-by: Kevin Fenzi --- roles/odcs/backend/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/odcs/backend/tasks/main.yml b/roles/odcs/backend/tasks/main.yml index 0a339fcf25..2199c1c808 100644 --- a/roles/odcs/backend/tasks/main.yml +++ b/roles/odcs/backend/tasks/main.yml @@ -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