2024-10-28 18:17:23 +01:00
|
|
|
---
|
|
|
|
- name: template ssh private key
|
|
|
|
become: true
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: private_key.j2
|
2024-10-28 18:27:43 +01:00
|
|
|
dest: "/etc/rsync_mirror/.ssh/id_rsync_mirror"
|
|
|
|
owner: "{{ rsync_mirror_user }}"
|
|
|
|
group: "{{ rsync_mirror_user_group }}"
|
2024-10-28 18:17:23 +01:00
|
|
|
mode: "0400"
|
|
|
|
no_log: true
|
|
|
|
when:
|
2024-10-28 18:27:43 +01:00
|
|
|
- rsync_mirror_syncoid_destination_host
|
2024-10-28 18:17:23 +01:00
|
|
|
|
2024-10-28 18:24:29 +01:00
|
|
|
- name: template ssh public key
|
|
|
|
ansible.posix.authorized_key:
|
2024-10-28 18:27:43 +01:00
|
|
|
user: "{{ rsync_mirror_user }}"
|
|
|
|
key: "{{ rsync_mirror_syncoid_ssh_pubkey }}"
|