homeserver/playbooks/on-off/remove_old_ssh_key.yml
mg 9e104aad58 Neuen ssh-key eingerichtet (#388)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#388
2022-07-02 13:20:21 +02:00

12 lines
352 B
YAML

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