25 lines
536 B
YAML
25 lines
536 B
YAML
---
|
|
- name: Copy gitea_backup.sh script
|
|
become: true
|
|
ansible.builtin.template:
|
|
src: gitea_backup.sh.j2
|
|
dest: /usr/local/bin/gitea_backup.sh
|
|
owner: git
|
|
group: git
|
|
mode: 0775
|
|
|
|
- name: Create gitea-dumps directory
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: "{{ gitea_run_dir }}/gitea-dumps"
|
|
state: directory
|
|
owner: git
|
|
group: git
|
|
mode: 0755
|
|
|
|
- name: Setup gitea-backup crontab
|
|
become: true
|
|
ansible.builtin.copy:
|
|
src: gitea-backup.cron
|
|
dest: /etc/cron.d/gitea-backup
|
|
mode: 0644
|