1
0

Add backups for gitea

This commit is contained in:
2025-05-03 16:56:22 +03:00
parent 9a3e646d8a
commit 155d065dd0
7 changed files with 195 additions and 108 deletions

View File

@ -10,6 +10,7 @@
app_name: "gitea"
app_user: "{{ app_name }}"
base_dir: "/home/{{ app_name }}"
backups_dir: "{{ (base_dir, 'backups') | path_join }}"
tasks:
- name: "Create user and environment"
@ -39,6 +40,15 @@
mode: "0775"
loop:
- "{{ (base_dir, 'data') | path_join }}"
- "{{ backups_dir }}"
- name: "Copy gitea-dump script"
ansible.builtin.template:
src: "files/{{ app_name }}/gitea-dump.sh.j2"
dest: "{{ base_dir }}/gitea-dump.sh"
owner: "{{ app_user }}"
group: "{{ app_user }}"
mode: "0750"
- name: "Copy docker compose file"
ansible.builtin.template: