add a task to copy the backup template

This commit is contained in:
Andreas Zweili 2021-11-15 16:52:27 +01:00
parent 473ea09f55
commit b8ad9de4f2
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,15 @@
mode: "751"
when: restic_extract is changed
- name: "Copy the backup script"
template:
src: "backup-to-restic.j2"
dest: "/home/{{ backup_user_name }}/backup-to-restic"
directory_mode: yes
owner: "ansible"
group: "ansible"
mode: 0755
- name: "Create the restic config dir"
file:
path: "/etc/restic/"