mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-12 19:10:06 +00:00
26 lines
477 B
YAML
26 lines
477 B
YAML
---
|
|
- name: Stop Gitea
|
|
systemd:
|
|
name: gitea
|
|
enabled: yes
|
|
state: stopped
|
|
|
|
- name: Dump Gitea
|
|
shell:
|
|
cmd: gitea dump -c /etc/gitea/app.ini --work-path=/etc/gitea --file=gitea-dump.zip
|
|
chdir: /etc/gitea
|
|
become: true
|
|
become_method: su
|
|
become_user: gitea
|
|
|
|
- name: Start Gitea
|
|
systemd:
|
|
name: gitea
|
|
enabled: yes
|
|
state: started
|
|
|
|
- name: Fetch backup
|
|
fetch:
|
|
src: /etc/gitea/gitea-dump.zip
|
|
dest: backups/gitea-dump.zip
|
|
flat: true |