Skip to content

Commit c7dff5b

Browse files
Merge branch 'master' into patch-1
2 parents 2cb38f3 + 90af956 commit c7dff5b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ The following attributes are required for each user:
3838
- 'on_create' will only set the password for newly created users.
3939
* group - Optional primary group override.
4040
* groups - A list of supplementary groups for the user.
41-
* profile - A string block for setting custom shell profiles
41+
* append - If yes, will only add groups, not set them to just the list in groups (optional).
42+
* profile - A string block for setting custom shell profiles.
4243
* ssh_key - This should be a list of SSH keys for the user (optional). Each SSH key
4344
should be included directly and should have no newlines.
4445
* generate_ssh_key - Whether to generate a SSH key for the user (optional, defaults to no).

tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
group: "{{item.group | default(item.username if users_create_per_user_group else users_group)}}"
1818
# empty string removes user from all secondary groups
1919
groups: "{{item.groups | join(',') if 'groups' in item else ''}}"
20+
append: "{{item.append | default(omit)}}"
2021
shell: "{{item.shell if item.shell is defined else users_default_shell}}"
2122
password: "{{item.password if item.password is defined else '!'}}"
2223
comment: "{{item.name if item.name is defined else ''}}"

0 commit comments

Comments
 (0)