We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc601a4 commit 0f32121Copy full SHA for 0f32121
tasks/main.yml
@@ -14,7 +14,8 @@
14
user:
15
name: "{{item.username}}"
16
group: "{{item.username if users_create_per_user_group else users_group}}"
17
- groups: "{{item.groups | join(',')}}"
+ # empty string removes user from all secondary groups
18
+ groups: "{{item.groups | join(',') if 'groups' in item else ''}}"
19
shell: "{{item.shell if item.shell is defined else users_default_shell}}"
20
password: "{{item.password if item.password is defined else '!'}}"
21
comment: "{{item.name}}"
0 commit comments