]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/blame - Vagrant/roles/ansible-rabbitmq/playbook.yml
Allow debian install from bintray with erlang from bintray
[github/fretlink/ansible-rabbitmq.git] / Vagrant / roles / ansible-rabbitmq / playbook.yml
CommitLineData
109c6b75
LSJ
1---
2- hosts: all
3 become: true
4 vars:
3a55d2ab 5 pri_domain_name: 'test.vagrant.local'
109c6b75
LSJ
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
3a55d2ab
LSJ
14 with_items: "{{ groups['all'] }}"
15
109c6b75
LSJ
16- hosts: all
17 become: true
18 vars:
3a55d2ab
LSJ
19 pri_domain_name: 'test.vagrant.local'
20 rabbitmq_config_ha: true
21 rabbitmq_enable_clustering: true
22 rabbitmq_master: 'node0'
109c6b75
LSJ
23 roles:
24 - role: ansible-rabbitmq
25 tasks: