mirror of
https://gitea.0xace.cc/ansible-galaxy/rabbitmq.git
synced 2024-11-25 08:16:43 +00:00
19 lines
558 B
YAML
19 lines
558 B
YAML
---
|
|
- name: Remove rabbitmq users
|
|
rabbitmq_user:
|
|
user: "{{ item }}"
|
|
state: absent
|
|
with_items: "{{ rabbitmq_users_absent }}"
|
|
|
|
- name: Add rabbitmq users
|
|
rabbitmq_user:
|
|
user: "{{ item.user }}"
|
|
password: "{{ item.password }}"
|
|
vhost: "{{ item.vhost | default('/') }}"
|
|
configure_priv: "{{ item.configure_priv | default('.*') }}"
|
|
read_priv: "{{ item.read_priv | default('.*') }}"
|
|
write_priv: "{{ item.write_priv | default('.*') }}"
|
|
tags: "{{ item.tags | default('') }}"
|
|
no_log: true
|
|
with_items: "{{ rabbitmq_users }}"
|