From fbc2a1701177b95f68d7f858344de23939d72a0f Mon Sep 17 00:00:00 2001 From: Marius Meyer Date: Wed, 10 Apr 2024 19:41:22 +0200 Subject: [PATCH] macos 'date' compatibility --- handlers/backup.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/backup.yaml b/handlers/backup.yaml index e0ea60e..3bb34e4 100644 --- a/handlers/backup.yaml +++ b/handlers/backup.yaml @@ -20,7 +20,7 @@ - name: Backup Gitea directory community.general.archive: path: /opt/gitea/ - dest: "/var/backups/gitea-{{ gitea.hostname }}.{{ gitea.domain }}@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}.tar.gz" + dest: "/var/backups/gitea-{{ gitea.hostname }}.{{ gitea.domain }}@{{ lookup('pipe', 'date -u +%Y-%m-%dT%H:%M:%SZ') }}.tar.gz" force_archive: true format: gz owner: root