aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2018-12-17 19:02:27 +0100
committerPaul Bonaud <paul.bonaud@fretlink.com>2018-12-20 11:14:51 +0100
commit84d38251e016aebeb6fc72a5c76a486f0542212b (patch)
treec44422c628bf812d81361dac203150eb1282e8ec /tasks
parentd58696271f166b50faa2705fdda6337c1ffb493c (diff)
downloadansible-rabbitmq-84d38251e016aebeb6fc72a5c76a486f0542212b.tar.gz
ansible-rabbitmq-84d38251e016aebeb6fc72a5c76a486f0542212b.tar.zst
ansible-rabbitmq-84d38251e016aebeb6fc72a5c76a486f0542212b.zip
vhosts: Adding rabbitmq vhosts creation
Diffstat (limited to 'tasks')
-rw-r--r--tasks/main.yml3
-rw-r--r--tasks/rabbitmq_vhosts.yml7
2 files changed, 10 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 1ef08f0..a9dc4d2 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -26,6 +26,9 @@
26 rabbitmq_enable_clustering and 26 rabbitmq_enable_clustering and
27 not clustered['stat']['exists'] 27 not clustered['stat']['exists']
28 28
29- include: rabbitmq_vhosts.yml
30 when: rabbitmq_extra_vhosts is defined
31
29- include: rabbitmq_ha_config.yml 32- include: rabbitmq_ha_config.yml
30 when: > 33 when: >
31 rabbitmq_config_ha and 34 rabbitmq_config_ha and
diff --git a/tasks/rabbitmq_vhosts.yml b/tasks/rabbitmq_vhosts.yml
new file mode 100644
index 0000000..790ac18
--- /dev/null
+++ b/tasks/rabbitmq_vhosts.yml
@@ -0,0 +1,7 @@
1---
2- name: Create vhosts
3 rabbitmq_vhost:
4 name: "{{ item['name'] }}"
5 state: "{{ item['state'] }}"
6 with_items: "{{ rabbitmq_extra_vhosts }}"
7 run_once: "{{ rabbitmq_enable_clustering is defined and rabbitmq_enable_clustering }}"