From 52729e6855f12dfee3d1d6f540858e4ca0af7402 Mon Sep 17 00:00:00 2001 From: jayjahns Date: Mon, 10 Jun 2024 15:30:01 -0500 Subject: [PATCH] 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 --- ansible/roles/service-rabbitmq/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/service-rabbitmq/tasks/main.yml b/ansible/roles/service-rabbitmq/tasks/main.yml index 74f610a1eb..bc1cb2c7d0 100644 --- a/ansible/roles/service-rabbitmq/tasks/main.yml +++ b/ansible/roles/service-rabbitmq/tasks/main.yml @@ -20,7 +20,7 @@ module_args: user: "{{ item.user }}" password: "{{ item.password }}" - node: "rabbit@{{ ansible_facts.hostname }}" + node: "rabbit@{{ hostvars[service_rabbitmq_delegate_host]['ansible_facts']['hostname'] }}" update_password: always vhost: "{{ item.vhost }}" configure_priv: ".*"