From 06a436fa1600e6fdf867efe3bb1583ba8ca3f11b Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Thu, 24 Apr 2025 16:54:09 +0200 Subject: [PATCH] Test with ansible_date_time. --- hostinger.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hostinger.yaml b/hostinger.yaml index 6e0e714..09bde2a 100644 --- a/hostinger.yaml +++ b/hostinger.yaml @@ -8,12 +8,17 @@ - name: Include container variables include_vars: vars/hostinger.yaml + - name: Register date + ansible.builtin.set_fact: + date: "{{ ansible_date_time.iso8601_basic_short }}" + + - name: Include the docker backup playbook import_playbook: docker-backup.yaml vars: backup_location: "/media/backup/docker/" containers: containers - date: ansible_date_time.iso8601_basic_short + date: ansible_facts.date - name: Include the fetch backup playbook import_playbook: fetch-backup.yaml @@ -21,4 +26,4 @@ local_backup: "/home/semaphore/backup/" backup_location: "/media/backup/docker/" containers: containers - date: ansible_date_time.iso8601_basic_short + date: ansible_facts.date