]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/blob - playbook.yml
Separate RedHat and Fedora
[github/fretlink/ansible-rabbitmq.git] / playbook.yml
1 ---
2 - hosts: all
3 become: true
4 vars:
5 - pri_domain_name: 'test.vagrant.local'
6 roles:
7 tasks:
8 - name: updating /etc/hosts
9 lineinfile:
10 dest: /etc/hosts
11 regexp: "^{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}"
12 line: "{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}"
13 state: present
14 with_items: groups['all']
15
16 - hosts: all
17 become: true
18 vars:
19 - config_rabbitmq_ha: true
20 - enable_rabbitmq_clustering: true
21 - pri_domain_name: 'test.vagrant.local'
22 - rabbitmq_master: 'node0'
23 roles:
24 - role: ansible-rabbitmq
25 tasks: