mgrote_users: fix filter #161

Merged
mg merged 1 commit from wantlist into master 2024-08-20 09:11:58 +02:00
Showing only changes of commit 897b2fbc23 - Show all commits

View file

@ -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