Updated from OpenStack Ansible Tests
Change-Id: I19635542929580992b7a6c3b7aa33cb332c39d7e
This commit is contained in:
parent
c1f87a9dc1
commit
db43893f49
@ -57,6 +57,7 @@
|
|||||||
- name: Verify password changed
|
- name: Verify password changed
|
||||||
command: "rabbitmqctl authenticate_user {{ _oslomsg_rpc_userid }} {{ _oslomsg_rpc_password }}"
|
command: "rabbitmqctl authenticate_user {{ _oslomsg_rpc_userid }} {{ _oslomsg_rpc_password }}"
|
||||||
register: rpc_password_changed
|
register: rpc_password_changed
|
||||||
|
failed_when: false
|
||||||
|
|
||||||
- name: Set password when changed
|
- name: Set password when changed
|
||||||
command: "rabbitmqctl change_password {{ _oslomsg_rpc_userid }} {{ _oslomsg_rpc_password }}"
|
command: "rabbitmqctl change_password {{ _oslomsg_rpc_userid }} {{ _oslomsg_rpc_password }}"
|
||||||
@ -96,9 +97,21 @@
|
|||||||
read_priv: ".*"
|
read_priv: ".*"
|
||||||
write_priv: ".*"
|
write_priv: ".*"
|
||||||
state: "present"
|
state: "present"
|
||||||
force: true
|
force: false
|
||||||
no_log: true
|
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)
|
- name: Setup RPC MQ Service (Qdrouterd)
|
||||||
delegate_to: "{{ _oslomsg_rpc_setup_host }}"
|
delegate_to: "{{ _oslomsg_rpc_setup_host }}"
|
||||||
when:
|
when:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user