From e8b81300716c0fc9d1f5d29f7ed7a7b72fbf4265 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Mon, 17 Dec 2018 19:06:16 +0100 Subject: fix: don't fail on user creation if tags is missing --- tasks/rabbitmq_users.yml | 4 ++-- 1 file 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 @@ 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 -- cgit v1.2.3