2022-01-28 16:49:15 +01:00
|
|
|
---
|
|
|
|
- hosts: all
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Set authorized key taken from file
|
|
|
|
become: yes
|
|
|
|
ansible.posix.authorized_key:
|
2023-07-03 22:42:46 +02:00
|
|
|
user: ansible-user
|
2022-01-28 16:49:15 +01:00
|
|
|
state: present
|
2023-07-03 22:42:46 +02:00
|
|
|
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJcBwOjanQV6sFWaTetqpl20SVe3aRzGjKbsp7hKkDCE mg@irantu
|
2022-01-28 16:49:15 +01:00
|
|
|
exclusive: true #entferne alle keys bis auf diesen
|