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: ".*"