Compare commits

..

No commits in common. "305a7a7f671380b9c9f6333ffa1a1cadb29b4fbb" and "4857f2d5b93152b8e9138d55740fa2c79644bbd4" have entirely different histories.

2 changed files with 2 additions and 9 deletions

View File

@ -1,10 +1,3 @@
- name: Ensure backup directory exists
ansible.builtin.file:
path: "/var/backups"
state: directory
owner: root
mode: "755"
- name: Get stats of docker-compose.yaml
ansible.builtin.stat:
path: /opt/gitea/docker-compose.yaml
@ -27,7 +20,7 @@
- name: Backup Gitea Directory
ansible.posix.synchronize:
src: /opt/gitea/
dest: "/var/backups/gitea.backup@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}"
dest: "/opt/gitea.backup@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}"
recursive: true
delegate_to: "{{ inventory_hostname }}"
listen: