added manage-ssh-keys role

This commit is contained in:
Ansible Servercow
2024-11-21 15:24:34 +01:00
parent ff56e2861d
commit cb57de9317
3 changed files with 55 additions and 0 deletions

View 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"