From 897b2fbc2304cab90ff80b6324bafc8db1414cbe Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 20 Aug 2024 09:04:39 +0200 Subject: [PATCH] dd --- roles/mgrote_users/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mgrote_users/tasks/main.yml b/roles/mgrote_users/tasks/main.yml index 28c0d77a..e7a76f47 100644 --- a/roles/mgrote_users/tasks/main.yml +++ b/roles/mgrote_users/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: set groups as list ansible.builtin.set_fact: - groups_as_list: "{{ (groups_as_list | default([]) + item.groups.split(',')) | map('trim') | list | sort | unique }}" + groups_as_list: "{{ (((((groups_as_list | default([]) + item.groups.split(','))) | map('trim')) | list) | sort) | unique }}" loop: '{{ users }}' when: item.groups is defined -- 2.43.0