mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-12 19:10:06 +00:00
25 lines
447 B
YAML
25 lines
447 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 |