aboutsummaryrefslogtreecommitdiffhomepage
path: root/playbook.yml
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.coml>2016-03-03 15:28:30 -0500
committerLarry Smith Jr <mrlesmithjr@gmail.coml>2016-03-03 15:28:30 -0500
commit203ffcbfc31abb06c306d3adbde7e44dce9afca2 (patch)
tree752378316844898114f23c499bad0a2ae6f28cfc /playbook.yml
parent93a297c59940c7cfe88afe0f9110af5b4be521e3 (diff)
downloadansible-rabbitmq-203ffcbfc31abb06c306d3adbde7e44dce9afca2.tar.gz
ansible-rabbitmq-203ffcbfc31abb06c306d3adbde7e44dce9afca2.tar.zst
ansible-rabbitmq-203ffcbfc31abb06c306d3adbde7e44dce9afca2.zip
Added support for CentOS and Vagrant
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.coml>
Diffstat (limited to 'playbook.yml')
-rw-r--r--playbook.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/playbook.yml b/playbook.yml
new file mode 100644
index 0000000..a9a7bba
--- /dev/null
+++ b/playbook.yml
@@ -0,0 +1,25 @@
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: