diff --git a/ansible/roles/rabbitmq/tasks/bootstrap.yml b/ansible/roles/rabbitmq/tasks/bootstrap.yml index a7d875b10b..01083ea54c 100644 --- a/ansible/roles/rabbitmq/tasks/bootstrap.yml +++ b/ansible/roles/rabbitmq/tasks/bootstrap.yml @@ -1,6 +1,6 @@ --- - name: Check if all rabbit hostnames are resolvable - command: "getent hosts {{ hostvars[item]['ansible_hostname'] }}" + command: "getent ahostsv4 {{ hostvars[item]['ansible_hostname'] }}" changed_when: false register: rabbitmq_hostnames with_items: groups['rabbitmq']