Fix the assignment to the common group.

This commit is contained in:
Andrea Dell'Amico 2024-03-20 16:23:39 +01:00
parent cba04cbd9b
commit 7110428646
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 8 additions and 4 deletions

View File

@ -7,19 +7,23 @@
tags: [ 'users', 'users_acl' ]
- block:
- name: Add selected users to the commong group
- name: Add selected users to the common group
user: name={{ item.login }} groups={{ common_users_group }} append=yes
with_items: '{{ users_system_users }}'
when: users_system_users is defined
when:
- users_system_users is defined
- item.state is not defined or item.state != "present"
tags: [ 'users', 'users_acl' ]
- block:
- name: Add additional users to the commong group
- name: Add additional users to the common group
user: name={{ item.login }} groups={{ common_users_group }} append=yes
with_items: '{{ users_system_users_adjunct }}'
when: users_system_users_adjunct is defined
when:
- users_system_users is defined
- item.state is not defined or item.state != "present"
tags: [ 'users', 'users_acl' ]
- block: