Fix the assignment to the common group.
This commit is contained in:
parent
cba04cbd9b
commit
7110428646
|
@ -7,19 +7,23 @@
|
||||||
tags: [ 'users', 'users_acl' ]
|
tags: [ 'users', 'users_acl' ]
|
||||||
|
|
||||||
- block:
|
- 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
|
user: name={{ item.login }} groups={{ common_users_group }} append=yes
|
||||||
with_items: '{{ users_system_users }}'
|
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' ]
|
tags: [ 'users', 'users_acl' ]
|
||||||
|
|
||||||
- block:
|
- 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
|
user: name={{ item.login }} groups={{ common_users_group }} append=yes
|
||||||
with_items: '{{ users_system_users_adjunct }}'
|
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' ]
|
tags: [ 'users', 'users_acl' ]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|
Loading…
Reference in New Issue