From b52f8767f60ac6aee7b65b83d5455c28927f64f6 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+sporqist@users.noreply.github.com> Date: Sat, 29 Apr 2023 14:42:33 +0000 Subject: [PATCH] [FIX] don't use ansible_date_time as it might be cached --- tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index a5860f0..9298d49 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -50,7 +50,7 @@ - name: Backup Gitea Directory ansible.builtin.copy: src: /opt/gitea/ - dest: "/opt/gitea.backup@{{ ansible_date_time.iso8601 }}" + dest: "/opt/gitea.backup@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}" mode: "700" remote_src: true directory_mode: true