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:
parent
c67b7dd277
commit
261bb54d21
1 changed files with 5 additions and 1 deletions
|
@ -71,6 +71,8 @@
|
||||||
- odcs/backend
|
- odcs/backend
|
||||||
|
|
||||||
- name: Configure the HA policy for the odcs queues
|
- name: Configure the HA policy for the odcs queues
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
rabbitmq_policy:
|
rabbitmq_policy:
|
||||||
name: HA
|
name: HA
|
||||||
apply_to: queues
|
apply_to: queues
|
||||||
|
@ -145,8 +147,10 @@
|
||||||
- odcs/backend
|
- odcs/backend
|
||||||
|
|
||||||
- name: Dump the admin password in a file for administrative operations
|
- name: Dump the admin password in a file for administrative operations
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
copy:
|
copy:
|
||||||
dest: /root/.rabbitmqpass
|
dest: /root/.odcs-rabbitmqpass
|
||||||
content: "{{ (env == 'production')|ternary(rabbitmq_odcs_admin_password_production, rabbitmq_odcs_admin_password_staging) }}"
|
content: "{{ (env == 'production')|ternary(rabbitmq_odcs_admin_password_production, rabbitmq_odcs_admin_password_staging) }}"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
owner: root
|
owner: root
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue