[FIX] Versuche nicht, Backups automatisch wiederherzustellen
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 13s

This commit is contained in:
Marius Alwan Meyer 2023-04-29 20:37:28 +00:00
parent f9d1e42513
commit 0f9d5f53c4

View File

@ -84,31 +84,3 @@
- Output Docker Compose State
- Ensure Gitea is restarted
- Check Gitea HTTP Response
- name: Update Config
block:
- name: Flush Handlers
meta: flush_handlers
rescue:
- name: Stop Gitea for Backup
community.docker.docker_compose:
project_src: /opt/gitea
state: present
stopped: true
notify:
- Ensure Gitea is running
- name: Clean up Gitea Directory before restoring Backup
ansible.builtin.file:
path: /opt/gitea
state: absent
- name: Restore Gitea Directory from Backup
ansible.builtin.copy:
src: "{{ backup.dest }}/"
dest: /opt/gitea
remote_src: true
mode: preserve
notify:
- Check Gitea HTTP Response