ff
Some checks failed
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline failed
ci/woodpecker/push/ansible-playbook unknown status
ci/woodpecker/pr/gitleaks Pipeline was successful
ci/woodpecker/pull_request_closed/gitleaks Pipeline was successful
ci/woodpecker/pr/ansible-lint Pipeline failed
ci/woodpecker/pr/ansible-playbook unknown status
ci/woodpecker/pull_request_closed/ansible-lint Pipeline failed
ci/woodpecker/pull_request_closed/ansible-playbook unknown status

This commit is contained in:
Michael Grote 2024-07-23 18:51:39 +02:00
parent 6d3843c3df
commit dadd1de147
2 changed files with 5 additions and 3 deletions

View file

@ -1,9 +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 }}"
@ -12,6 +11,8 @@
when:
- sanoid_syncoid_destination_host
- name: add user to sudoers
become: true
ansible.builtin.blockinfile:

View file

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