File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ The following attributes are required for each user:
36
36
* group - optional primary group override
37
37
* groups - a list of supplementary groups for the user.
38
38
* profile - a string block for setting custom shell profiles
39
- * ssh-key - This should be a list of ssh keys for the user. Each ssh key
39
+ * ssh_key - This should be a list of ssh keys for the user. Each ssh key
40
40
should be included directly and should have no newlines.
41
+ * generate_ssh_key - Whether to generate a SSH key for the user (optional, defaults to no).
41
42
42
43
In addition, the following items are optional for each user:
43
44
Original file line number Diff line number Diff line change 23
23
uid : " {{item.uid}}"
24
24
home : " {{ item.home | default('/home/' + item.username) }}"
25
25
createhome : " {{'yes' if users_create_homedirs else 'no'}}"
26
+ generate_ssh_key : " {{ item.generate_ssh_key | default(omit) }}"
26
27
with_items : " {{users}}"
27
28
tags : ['users','configuration']
28
29
You can’t perform that action at this time.
0 commit comments