Merge experimental nach main #3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user