17 lines
427 B
YAML
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 }}"
|