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 4646* ` ssh_keys_authorized_keys ` : [ default: ` [] ` ] : Authorized key declarations
4747* ` ssh_keys_authorized_keys.{n}.owner ` : [ required] : The name of the user that should own the file
4848* ` ssh_keys_authorized_keys.{n}.src ` : [ required] : The local path of the key
49- * ` ssh_keys_authorized_keys.{n}.state ` : [ default: ` present ` ] : State
49+ * ` ssh_keys_authorized_keys.{n}.state ` : [ optional, default: ` present ` ] : State
50+ * ` ssh_keys_authorized_keys.{n}.path ` : [ optional, default: ` authorized_keys ` ] : Authorized keys file (relative to ` home/.ssh/ ` )
5051
5152* ` ssh_keys_known_hosts ` : [ default: ` [] ` ] : Known hosts declarations
5253* ` ssh_keys_known_hosts.{n}.hostname ` : [ required] : The hostname
Original file line number Diff line number Diff line change 55 user : " {{ item.owner }}"
66 key : " {{ lookup('file', item.src) }}"
77 state : " {{ item.state | default('present') }}"
8+ path : " ~/.ssh/{{ item.path | default('authorized_keys') }}"
89 with_items : " {{ ssh_keys_authorized_keys }}"
910 tags :
1011 ssh-keys-authorized-keys-setup
You can’t perform that action at this time.
0 commit comments