From b8ad9de4f20baa44c1d22b018760ff0e6d76cbdf Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 15 Nov 2021 16:52:27 +0100 Subject: [PATCH] add a task to copy the backup template --- tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index fe54cbd..c727300 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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/"