aboutsummaryrefslogtreecommitdiffhomepage
path: root/Vagrant/roles/ansible-rabbitmq/playbook.yml
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2016-12-03 17:51:25 -0500
committerLarry Smith Jr <mrlesmithjr@gmail.com>2016-12-03 17:51:25 -0500
commit109c6b750751d1c5cd216ad2f09258cf512c4c9e (patch)
tree0b276b62a25937dd5edb6d905952cf107b7c88ca /Vagrant/roles/ansible-rabbitmq/playbook.yml
parent8f8673fb8dfa2bd4fa2694cbfdcb6eed54e502de (diff)
downloadansible-rabbitmq-109c6b750751d1c5cd216ad2f09258cf512c4c9e.tar.gz
ansible-rabbitmq-109c6b750751d1c5cd216ad2f09258cf512c4c9e.tar.zst
ansible-rabbitmq-109c6b750751d1c5cd216ad2f09258cf512c4c9e.zip
Addressed issue #6
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
Diffstat (limited to 'Vagrant/roles/ansible-rabbitmq/playbook.yml')
-rw-r--r--Vagrant/roles/ansible-rabbitmq/playbook.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/Vagrant/roles/ansible-rabbitmq/playbook.yml b/Vagrant/roles/ansible-rabbitmq/playbook.yml
new file mode 100644
index 0000000..498c829
--- /dev/null
+++ b/Vagrant/roles/ansible-rabbitmq/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 - rabbitmq_config_ha: true
20 - rabbitmq_enable_clustering: true
21 - pri_domain_name: 'test.vagrant.local'
22 - rabbitmq_master: 'node0'
23 roles:
24 - role: ansible-rabbitmq
25 tasks: