- name: Stop Gitea for Backup community.docker.docker_compose: project_src: /opt/gitea state: present stopped: true ignore_errors: true listen: - Backup Gitea notify: - Ensure Gitea is running - name: Backup Gitea Directory ansible.builtin.synchronize: src: /opt/gitea/ dest: "/opt/gitea.backup@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}" recursive: true delegate_to: "{{ inventory_hostname }}" listen: - Backup Gitea register: backup