File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ The following attributes are required for each user:
28
28
* name - The full name of the user (gecos field)
29
29
* uid - The numeric user id for the user. This is required for uid consistency
30
30
across systems.
31
+ * password - If a hash is provided then that will be used, but otherwise the
32
+ account will be locked
31
33
* groups - a list of supplementary groups for the user.
32
34
* ssh-key - This should be a list of ssh keys for the user. Each ssh key
33
35
should be included directly and should have no newlines.
Original file line number Diff line number Diff line change 11
11
else users_group}}"
12
12
groups="{{item.groups | join(',')}}"
13
13
shell={{item.shell if item.shell is defined else users_default_shell}}
14
+ password="{{item.password if item.password is defined else '!'}}"
14
15
comment="{{item.name}}"
15
16
uid="{{item.uid}}"
16
17
createhome="{{'yes' if users_create_homedirs else 'no'}}"
You can’t perform that action at this time.
0 commit comments