homeserver/roles/mgrote_rsync/tasks/destination.yml
Michael Grote 2cb7390f5b
Some checks failed
ansible-lint / gitleaks (pull_request) Successful in 8s
ansible-lint / Ansible Lint (pull_request) Failing after 1m15s
sdfgds
2024-10-28 18:24:29 +01:00

17 lines
427 B
YAML

---
- name: template ssh private key
become: true
ansible.builtin.template:
src: private_key.j2
dest: "/etc/sanoid/.ssh/id_sanoid"
owner: "{{ sanoid_user }}"
group: "{{ sanoid_user_group }}"
mode: "0400"
no_log: true
when:
- sanoid_syncoid_destination_host
- name: template ssh public key
ansible.posix.authorized_key:
user: "{{ sanoid_user }}"
key: "{{ sanoid_syncoid_ssh_pubkey }}"