mirror of
https://gitea.0xace.cc/ansible-galaxy/rabbitmq.git
synced 2024-11-25 08:16:43 +00:00
15 lines
400 B
YAML
15 lines
400 B
YAML
---
|
|
- name: Remove rabbitmq virtual hosts
|
|
rabbitmq_vhost:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
with_items: "{{ rabbitmq_vhosts_absent }}"
|
|
|
|
- name: Add rabbitmq virtual hosts
|
|
rabbitmq_vhost:
|
|
name: "{{ item.name | default(item) }}"
|
|
node: "{{ item.node | default('rabbit') }}"
|
|
state: present
|
|
tracing: "{{ item.tracing | default(False) }}"
|
|
with_items: "{{ rabbitmq_vhosts }}"
|