]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/commitdiff
fix: don't fail on user creation if tags is missing
authorPaul Bonaud <paul.bonaud@fretlink.com>
Mon, 17 Dec 2018 18:06:16 +0000 (19:06 +0100)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Thu, 20 Dec 2018 10:23:11 +0000 (11:23 +0100)
tasks/rabbitmq_users.yml

index 98e45e2e35e0adbf4e91b748861a538a04e8ca5a..f1d6e8cdca16a4ca2aca55ad36eea30295bc6ced 100644 (file)
@@ -7,7 +7,7 @@
     configure_priv: "{{ item['configure_priv'] }}"
     read_priv: "{{ item['read_priv'] }}"
     write_priv: "{{ item['write_priv'] }}"
-    tags: "{{ item['tags'] }}"
+    tags: "{{ item['tags']|default(omit) }}"
     state: present
   become: true
   with_items: "{{ rabbitmq_users }}"
@@ -24,7 +24,7 @@
     configure_priv: "{{ item['configure_priv'] }}"
     read_priv: "{{ item['read_priv'] }}"
     write_priv: "{{ item['write_priv'] }}"
-    tags: "{{ item['tags'] }}"
+    tags: "{{ item['tags']|default(omit) }}"
     state: present
   run_once: yes
   become: true