Copy ansible user's authorized_keys for new users

This allows logging in directly via SSH to the newly added users.
I also removed the XDG_RUNTIME_DIR variable in ~/.zshrc because
this variable is already correctly loaded when loggin in directly via
SSH.
This commit is contained in:
Thomas Kleinendorst 2024-04-17 16:00:58 +02:00
parent 5d32ed57b4
commit 16c78c0d00
2 changed files with 29 additions and 14 deletions

View file

@ -20,7 +20,6 @@
- role: pi-hole
vars:
# devsec.hardening.ssh_hardening vars:
ssh_allow_users: 'thomas'
ssh_client_port: 22 # Default, but duplicated here for documentation purpose. Not changed because its only accessible via LAN.
ssh_client_password_login: false # Default, but duplicated here for documentation purpose.
tasks: