aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2018-12-17 19:06:16 +0100
committerPaul Bonaud <paul.bonaud@fretlink.com>2018-12-20 11:23:11 +0100
commite8b81300716c0fc9d1f5d29f7ed7a7b72fbf4265 (patch)
tree86a8bdd9a6233a3514c487be6fbf9bbca2d9bf05
parentd58696271f166b50faa2705fdda6337c1ffb493c (diff)
downloadansible-rabbitmq-e8b81300716c0fc9d1f5d29f7ed7a7b72fbf4265.tar.gz
ansible-rabbitmq-e8b81300716c0fc9d1f5d29f7ed7a7b72fbf4265.tar.zst
ansible-rabbitmq-e8b81300716c0fc9d1f5d29f7ed7a7b72fbf4265.zip
fix: don't fail on user creation if tags is missing
-rw-r--r--tasks/rabbitmq_users.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/rabbitmq_users.yml b/tasks/rabbitmq_users.yml
index 98e45e2..f1d6e8c 100644
--- a/tasks/rabbitmq_users.yml
+++ b/tasks/rabbitmq_users.yml
@@ -7,7 +7,7 @@
7 configure_priv: "{{ item['configure_priv'] }}" 7 configure_priv: "{{ item['configure_priv'] }}"
8 read_priv: "{{ item['read_priv'] }}" 8 read_priv: "{{ item['read_priv'] }}"
9 write_priv: "{{ item['write_priv'] }}" 9 write_priv: "{{ item['write_priv'] }}"
10 tags: "{{ item['tags'] }}" 10 tags: "{{ item['tags']|default(omit) }}"
11 state: present 11 state: present
12 become: true 12 become: true
13 with_items: "{{ rabbitmq_users }}" 13 with_items: "{{ rabbitmq_users }}"
@@ -24,7 +24,7 @@
24 configure_priv: "{{ item['configure_priv'] }}" 24 configure_priv: "{{ item['configure_priv'] }}"
25 read_priv: "{{ item['read_priv'] }}" 25 read_priv: "{{ item['read_priv'] }}"
26 write_priv: "{{ item['write_priv'] }}" 26 write_priv: "{{ item['write_priv'] }}"
27 tags: "{{ item['tags'] }}" 27 tags: "{{ item['tags']|default(omit) }}"
28 state: present 28 state: present
29 run_once: yes 29 run_once: yes
30 become: true 30 become: true