homeserver/roles/mgrote_rsync/tasks/destination.yml
2024-10-28 18:27:43 +01:00

17 lines
469 B
YAML

---
- name: template ssh private key
become: true
ansible.builtin.template:
src: private_key.j2
dest: "/etc/rsync_mirror/.ssh/id_rsync_mirror"
owner: "{{ rsync_mirror_user }}"
group: "{{ rsync_mirror_user_group }}"
mode: "0400"
no_log: true
when:
- rsync_mirror_syncoid_destination_host
- name: template ssh public key
ansible.posix.authorized_key:
user: "{{ rsync_mirror_user }}"
key: "{{ rsync_mirror_syncoid_ssh_pubkey }}"