File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ Role to manage users on a system.
15
15
specified for the user.
16
16
* users_create_homedirs (default: true) - create home directories for new
17
17
users. Set this to false if you manage home directories separately.
18
+ * authorized_keys_file (default: .ssh/authorized_keys) - Set this if the
19
+ ssh server is configured to use a non standard authorized keys file.
18
20
19
21
## Creating users
20
22
Original file line number Diff line number Diff line change @@ -20,3 +20,5 @@ users_deleted: []
20
20
# - name: developers
21
21
# gid: 10000
22
22
groups_to_create : []
23
+
24
+ authorized_keys_file : " .ssh/authorized_keys"
Original file line number Diff line number Diff line change 33
33
authorized_key :
34
34
user : " {{item.0.username}}"
35
35
key : " {{item.1}}"
36
- path : " {{ item.0.home | default('/home/' + item.0.username) }}/.ssh/authorized_keys "
36
+ path : " {{ item.0.home | default('/home/' + item.0.username) }}/{{ authorized_keys_file }} "
37
37
with_subelements :
38
38
- " {{users}}"
39
39
- ssh_key
You can’t perform that action at this time.
0 commit comments