mgrote_users: fix filter (#161)
Some checks failed
ci/woodpecker/pr/gitleaks Pipeline failed
ci/woodpecker/pull_request_closed/gitleaks Pipeline failed
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/pr/ansible-lint unknown status
ci/woodpecker/pull_request_closed/ansible-lint unknown status
ci/woodpecker/push/ansible-lint Pipeline failed
Some checks failed
ci/woodpecker/pr/gitleaks Pipeline failed
ci/woodpecker/pull_request_closed/gitleaks Pipeline failed
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/pr/ansible-lint unknown status
ci/woodpecker/pull_request_closed/ansible-lint unknown status
ci/woodpecker/push/ansible-lint Pipeline failed
Reviewed-on: #161 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
304eda8371
commit
812e75a196
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: set groups as list
|
- name: set groups as list
|
||||||
ansible.builtin.set_fact:
|
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 }}'
|
loop: '{{ users }}'
|
||||||
when: item.groups is defined
|
when: item.groups is defined
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue