---
- hosts: rabbitmq
  become: True
  roles:
      - rabbitmq
  vars:
      hostname_node0: "{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}"