[FIX] don't use ansible_date_time as it might be cached
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 12s

This commit is contained in:
Marius Alwan Meyer 2023-04-29 14:42:33 +00:00
parent d64c96576c
commit b52f8767f6

View File

@ -50,7 +50,7 @@
- name: Backup Gitea Directory - name: Backup Gitea Directory
ansible.builtin.copy: ansible.builtin.copy:
src: /opt/gitea/ src: /opt/gitea/
dest: "/opt/gitea.backup@{{ ansible_date_time.iso8601 }}" dest: "/opt/gitea.backup@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}"
mode: "700" mode: "700"
remote_src: true remote_src: true
directory_mode: true directory_mode: true