aboutsummaryrefslogblamecommitdiffhomepage
path: root/playbook.yml
blob: 33cf1ab30a4d639ebce7164934cf683354b84686 (plain) (tree)
























                                                                                                    
---
- hosts: all
  become: true
  vars:
    pri_domain_name: 'test.vagrant.local'
  roles:
  tasks:
    - name: updating /etc/hosts
      lineinfile:
        dest: /etc/hosts
        regexp: "^{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}"
        line: "{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}"
        state: present
      with_items: groups['all']

- hosts: all
  become: true
  vars:
    pri_domain_name: 'test.vagrant.local'
    rabbitmq_config_ha: true
    rabbitmq_enable_clustering: true
    rabbitmq_master: 'node0'
  roles:
    - role: ansible-rabbitmq
  tasks: