infoscreen/roles/sshKeys/tasks/main.yml
Jesko Anschütz 9fa8f1ef9b first commit
2025-02-01 11:00:35 +01:00

18 lines
553 B
YAML

---
# Füge SSH-Schlüssel zu /root/.ssh/authorized_keys hinzu
- name: Füge SSH-Schlüssel zu /root/.ssh/authorized_keys hinzu
authorized_key:
user: root
state: present
key: "{{ item }}"
with_items: "{{ ssh_keys }}"
when: additionalSSHKeys
# Füge SSH-Schlüssel zu /home/"{{ raspi_user }}"/.ssh/authorized_keys hinzu
- name: Füge SSH-Schlüssel zu /home/morz/.ssh/authorized_keys hinzu
authorized_key:
user: "{{ raspi_user }}"
state: present
key: "{{ item }}"
with_items: "{{ ssh_keys }}"
when: additionalSSHKeys