sanoid/syncoid: fix private-key formatting (#143)
Reviewed-on: #143 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
2a83ca425f
commit
1d98336991
2 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
- name: template ssh private key
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
content: "{{ sanoid_syncoid_ssh_privkey }}"
|
||||
ansible.builtin.template:
|
||||
src: private_key.j2
|
||||
dest: "/etc/sanoid/.ssh/id_sanoid"
|
||||
owner: "{{ sanoid_user }}"
|
||||
group: "{{ sanoid_user_group }}"
|
||||
|
@ -11,6 +11,8 @@
|
|||
when:
|
||||
- sanoid_syncoid_destination_host
|
||||
|
||||
|
||||
|
||||
- name: add user to sudoers
|
||||
become: true
|
||||
ansible.builtin.blockinfile:
|
||||
|
|
1
roles/mgrote_zfs_sanoid/templates/private_key.j2
Normal file
1
roles/mgrote_zfs_sanoid/templates/private_key.j2
Normal file
|
@ -0,0 +1 @@
|
|||
{{ sanoid_syncoid_ssh_privkey }}
|
Loading…
Reference in a new issue