Updated from OpenStack Ansible Tests

Change-Id: I19635542929580992b7a6c3b7aa33cb332c39d7e
This commit is contained in:
OpenStack Proposal Bot 2019-06-20 20:01:25 +00:00
parent c1f87a9dc1
commit db43893f49

View File

@ -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: