Set node to a valid rabbitmq host

If rabbitmq is not on the same host as the nova-controller,
then this task will fail. This change ensures that the
task references an actual rabbitmq host vs the host the
task runs on.

Closes-Bug: 2020805
Change-Id: I1b58f4aeda8c9fe8db1770c63c17bf1c465f3d2a
This commit is contained in:
jayjahns 2024-06-10 15:30:01 -05:00
parent 0dd6ed7a9c
commit 52729e6855

View File

@ -20,7 +20,7 @@
module_args: module_args:
user: "{{ item.user }}" user: "{{ item.user }}"
password: "{{ item.password }}" password: "{{ item.password }}"
node: "rabbit@{{ ansible_facts.hostname }}" node: "rabbit@{{ hostvars[service_rabbitmq_delegate_host]['ansible_facts']['hostname'] }}"
update_password: always update_password: always
vhost: "{{ item.vhost }}" vhost: "{{ item.vhost }}"
configure_priv: ".*" configure_priv: ".*"