rabbitmq/tasks/vhosts.yaml
2023-02-08 01:38:33 +03:00

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 }}"