2022-01-28 16:49:15 +01:00
|
|
|
---
|
|
|
|
- hosts: all
|
2023-10-25 22:26:17 +02:00
|
|
|
become: true
|
2022-01-28 16:49:15 +01:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Set authorized key taken from file
|
2023-10-25 22:26:17 +02:00
|
|
|
become: true
|
2022-01-28 16:49:15 +01:00
|
|
|
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
|