sanoid/syncoid: fix private-key formatting (#143)
Some checks failed
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline failed
ci/woodpecker/push/ansible-playbook unknown status

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:
Michael Grote 2024-07-23 18:55:37 +02:00 committed by Michael Grote
parent 2a83ca425f
commit 1d98336991
2 changed files with 5 additions and 2 deletions

View file

@ -1,8 +1,8 @@
--- ---
- name: template ssh private key - name: template ssh private key
become: true become: true
ansible.builtin.copy: ansible.builtin.template:
content: "{{ sanoid_syncoid_ssh_privkey }}" src: private_key.j2
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 }}"
@ -11,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:

View file

@ -0,0 +1 @@
{{ sanoid_syncoid_ssh_privkey }}