Updated from OpenStack Ansible Tests
Change-Id: I150505b24584bd6ffdc134402bf6061df1e7b411
This commit is contained in:
parent
27ea89b839
commit
deaa4f36c5
@ -57,6 +57,7 @@
|
||||
- name: Verify password changed
|
||||
command: "rabbitmqctl authenticate_user {{ _oslomsg_rpc_userid }} {{ _oslomsg_rpc_password }}"
|
||||
register: rpc_password_changed
|
||||
failed_when: false
|
||||
|
||||
- name: Set password when changed
|
||||
command: "rabbitmqctl change_password {{ _oslomsg_rpc_userid }} {{ _oslomsg_rpc_password }}"
|
||||
@ -96,9 +97,21 @@
|
||||
read_priv: ".*"
|
||||
write_priv: ".*"
|
||||
state: "present"
|
||||
force: true
|
||||
force: false
|
||||
no_log: true
|
||||
|
||||
- name: Verify password changed
|
||||
command: "rabbitmqctl authenticate_user {{ _oslomsg_notify_userid }} {{ _oslomsg_notify_password }}"
|
||||
register: notify_password_changed
|
||||
failed_when: false
|
||||
when: _oslomsg_notify_userid != _oslomsg_rpc_userid
|
||||
|
||||
- name: Set password when changed
|
||||
command: "rabbitmqctl change_password {{ _oslomsg_notify_userid }} {{ _oslomsg_notify_password }}"
|
||||
when:
|
||||
- notify_password_changed.rc | default(0) != 0
|
||||
- _oslomsg_notify_userid != _oslomsg_rpc_userid
|
||||
|
||||
- name: Setup RPC MQ Service (Qdrouterd)
|
||||
delegate_to: "{{ _oslomsg_rpc_setup_host }}"
|
||||
when:
|
||||
|
Loading…
x
Reference in New Issue
Block a user