dd
Some checks failed
ci/woodpecker/push/gitleaks Pipeline failed
ci/woodpecker/pull_request_closed/gitleaks Pipeline was successful
ci/woodpecker/pr/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint unknown status
ci/woodpecker/pr/ansible-lint Pipeline failed
ci/woodpecker/pull_request_closed/ansible-lint Pipeline was successful

This commit is contained in:
Michael Grote 2024-08-20 09:04:39 +02:00
parent 304eda8371
commit 897b2fbc23

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