homeserver/playbooks/on-off/remove_old_ssh_key.yml
mg ce813a881b rotate ansibe-user ssh key (#544)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #544
2023-07-03 22:42:46 +02:00

12 lines
355 B
YAML

---
- hosts: all
become: yes
tasks:
- name: Set authorized key taken from file
become: yes
ansible.posix.authorized_key:
user: ansible-user
state: present
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJcBwOjanQV6sFWaTetqpl20SVe3aRzGjKbsp7hKkDCE mg@irantu
exclusive: true #entferne alle keys bis auf diesen