macos 'date' compatibility

This commit is contained in:
Marius Meyer 2024-04-10 19:41:22 +02:00
parent c39d29c03f
commit fbc2a17011

View File

@ -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