From d279cb35eca189a84e08c5109765f7cd89149f39 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 22 Aug 2023 10:09:29 +0200 Subject: [PATCH] upt playbook --- playbooks/sync_mailu.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/playbooks/sync_mailu.yaml b/playbooks/sync_mailu.yaml index 18089a7..620ae84 100644 --- a/playbooks/sync_mailu.yaml +++ b/playbooks/sync_mailu.yaml @@ -49,9 +49,13 @@ ignore_errors: yes when: inventory_hostname in groups['nas'] + - name: Display the current timestamp in YYYY-MM-DD + debug: + ts=ansible_date_time.date + - name: Create archive #ansible.builtin.shell: 'tar -czf /share/Data/dockers.tar.gz /share/docker_data/{mailu2,webhub,ha} --exclude="/ha/backups/*" --exclude="home-assistant.log*"' - ansible.builtin.shell: 'tar -czf /share/Data/dockers.tar.gz /share/docker_data/mailu2 --exclude="/ha/backups/*" --exclude="home-assistant.log*"' + ansible.builtin.shell: 'tar -czf /share/Data/dockers-{{ ts }}.tar.gz /share/docker_data/mailu2 --exclude="/ha/backups/*" --exclude="home-assistant.log*"' ignore_errors: yes when: inventory_hostname in groups['nas']