added manage-ssh-keys role
This commit is contained in:
14
roles/manage-ssh-keys/defaults/main.yml
Normal file
14
roles/manage-ssh-keys/defaults/main.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
ssh_user: "root"
|
||||
authorized_keys_file: >-
|
||||
{{ "/root/.ssh/authorized_keys" if ssh_user == "root" else "/home/{{ ssh_user }}/.ssh/authorized_keys" }}
|
||||
|
||||
# Liste der erwünschten (Good) Keys
|
||||
good_keys:
|
||||
- "ssh-rsa AAAAB3... goodkey1"
|
||||
- "ssh-rsa AAAAB3... goodkey2"
|
||||
|
||||
# Liste der unerwünschten (Bad) Keys
|
||||
bad_keys:
|
||||
- "ssh-rsa AAAAB3... badkey1"
|
||||
- "ssh-rsa AAAAB3... badkey2"
|
||||
Reference in New Issue
Block a user