File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ The following attributes are required for each user:
33
33
uid will be used
34
34
* password - If a hash is provided then that will be used, but otherwise the
35
35
account will be locked
36
+ * update_password - This can be either 'always' or 'on_create'
37
+ - 'always' will update passwords if they differ. (default)
38
+ - 'on_create' will only set the password for newly created users.
36
39
* group - optional primary group override
37
40
* groups - a list of supplementary groups for the user.
38
41
* profile - a string block for setting custom shell profiles
Original file line number Diff line number Diff line change 24
24
home : " {{ item.home | default('/home/' + item.username) }}"
25
25
createhome : " {{'yes' if users_create_homedirs else 'no'}}"
26
26
generate_ssh_key : " {{ item.generate_ssh_key | default(omit) }}"
27
+ update_password : " {{item.update_password | default(omit)}}"
27
28
with_items : " {{users}}"
28
29
tags : ['users','configuration']
29
30
You can’t perform that action at this time.
0 commit comments