diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-12-20 14:57:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-20 14:57:38 -0500 |
commit | 4352e35b29e9fcc0b0e3440e00e8ece4fd9b4348 (patch) | |
tree | e0c7f2114211b9b44b7a0c45612e528ee9ca3353 /tasks | |
parent | f6c833a9ce9369e7a37d6cc6707422d5cf00b56d (diff) | |
parent | 1c913a96ca3a2983e2e2b2edfed8fa55a1e954f3 (diff) | |
download | ansible-rabbitmq-4352e35b29e9fcc0b0e3440e00e8ece4fd9b4348.tar.gz ansible-rabbitmq-4352e35b29e9fcc0b0e3440e00e8ece4fd9b4348.tar.zst ansible-rabbitmq-4352e35b29e9fcc0b0e3440e00e8ece4fd9b4348.zip |
Merge pull request #22 from paulrbr-fl/user-permissions
users: allow list of permissions to be provided instead of unique vhost permissions
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rabbitmq_users.yml | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tasks/rabbitmq_users.yml b/tasks/rabbitmq_users.yml index 98e45e2..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'] }}" | 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'] }}" | 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 |