From 0f4bbb3ca6539d3807572d505ef04c65ccce6c9a Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 15 Nov 2021 18:35:59 +0100 Subject: [PATCH] create the file if it is missing --- tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index fba07b6..d83e92b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -29,6 +29,7 @@ mode: 0755 owner: "ansible" group: "ansible" + create: yes block: | #!/bin/bash export RESTIC_REPOSITORY=sftp:borg@10.7.89.117:restic @@ -48,6 +49,7 @@ mode: 0755 owner: "andreas" group: "andreas" + create: yes block: | #!/bin/bash export RESTIC_REPOSITORY=sftp:borg@10.7.89.117:restic