rabbitmq/tasks/vhosts.yaml

15 lines
400 B
YAML
Raw Normal View History

2023-02-07 22:38:33 +00:00
---
- 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 }}"