sanoid/syncoid: fix private-key formatting #143
2 changed files with 5 additions and 3 deletions
|
@ -1,9 +1,8 @@
|
||||||
---
|
---
|
||||||
- name: template ssh private key
|
- name: template ssh private key
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.template:
|
||||||
content: |
|
src: private_key.j2
|
||||||
"{{ sanoid_syncoid_ssh_privkey }}"
|
|
||||||
dest: "/etc/sanoid/.ssh/id_sanoid"
|
dest: "/etc/sanoid/.ssh/id_sanoid"
|
||||||
owner: "{{ sanoid_user }}"
|
owner: "{{ sanoid_user }}"
|
||||||
group: "{{ sanoid_user_group }}"
|
group: "{{ sanoid_user_group }}"
|
||||||
|
@ -12,6 +11,8 @@
|
||||||
when:
|
when:
|
||||||
- sanoid_syncoid_destination_host
|
- sanoid_syncoid_destination_host
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: add user to sudoers
|
- name: add user to sudoers
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.blockinfile:
|
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