aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/rabbitmq_users.yml
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2018-12-20 09:16:07 +0100
committerPaul Bonaud <paul.bonaud@fretlink.com>2018-12-20 11:23:18 +0100
commit1c913a96ca3a2983e2e2b2edfed8fa55a1e954f3 (patch)
tree0eab771eac43966f1a6bcd00e38974f8da828398 /tasks/rabbitmq_users.yml
parente8b81300716c0fc9d1f5d29f7ed7a7b72fbf4265 (diff)
downloadansible-rabbitmq-1c913a96ca3a2983e2e2b2edfed8fa55a1e954f3.tar.gz
ansible-rabbitmq-1c913a96ca3a2983e2e2b2edfed8fa55a1e954f3.tar.zst
ansible-rabbitmq-1c913a96ca3a2983e2e2b2edfed8fa55a1e954f3.zip
rabbitmq_users: Allow permissions on multiple vhosts
Diffstat (limited to 'tasks/rabbitmq_users.yml')
-rw-r--r--tasks/rabbitmq_users.yml18
1 files changed, 10 insertions, 8 deletions
diff --git a/tasks/rabbitmq_users.yml b/tasks/rabbitmq_users.yml
index f1d6e8c..82aa734 100644
--- a/tasks/rabbitmq_users.yml
+++ b/tasks/rabbitmq_users.yml
@@ -3,11 +3,12 @@
3 rabbitmq_user: 3 rabbitmq_user:
4 name: "{{ item['name'] }}" 4 name: "{{ item['name'] }}"
5 password: "{{ item['password'] }}" 5 password: "{{ item['password'] }}"
6 vhost: "{{ item['vhost'] }}" 6 vhost: "{{ item['vhost']|default(omit) }}"
7 configure_priv: "{{ item['configure_priv'] }}" 7 configure_priv: "{{ item['configure_priv']|default(omit) }}"
8 read_priv: "{{ item['read_priv'] }}" 8 read_priv: "{{ item['read_priv']|default(omit) }}"
9 write_priv: "{{ item['write_priv'] }}" 9 write_priv: "{{ item['write_priv']|default(omit) }}"
10 tags: "{{ item['tags']|default(omit) }}" 10 tags: "{{ item['tags']|default(omit) }}"
11 permissions: "{{ item['permissions']|default(omit) }}"
11 state: present 12 state: present
12 become: true 13 become: true
13 with_items: "{{ rabbitmq_users }}" 14 with_items: "{{ rabbitmq_users }}"
@@ -20,11 +21,12 @@
20 rabbitmq_user: 21 rabbitmq_user:
21 name: "{{ item['name'] }}" 22 name: "{{ item['name'] }}"
22 password: "{{ item['password'] }}" 23 password: "{{ item['password'] }}"
23 vhost: "{{ item['vhost'] }}" 24 vhost: "{{ item['vhost']|default(omit) }}"
24 configure_priv: "{{ item['configure_priv'] }}" 25 configure_priv: "{{ item['configure_priv']|default(omit) }}"
25 read_priv: "{{ item['read_priv'] }}" 26 read_priv: "{{ item['read_priv']|default(omit) }}"
26 write_priv: "{{ item['write_priv'] }}" 27 write_priv: "{{ item['write_priv']|default(omit) }}"
27 tags: "{{ item['tags']|default(omit) }}" 28 tags: "{{ item['tags']|default(omit) }}"
29 permissions: "{{ item['permissions']|default(omit) }}"
28 state: present 30 state: present
29 run_once: yes 31 run_once: yes
30 become: true 32 become: true