gitea data/config base_path var
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 36s
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 36s
This commit is contained in:
parent
50e6c10349
commit
14da8cd5a1
@ -18,7 +18,7 @@
|
||||
|
||||
- name: Backup Gitea directory
|
||||
community.general.archive:
|
||||
path: /var/lib/gitea/
|
||||
path: "{{ gitea_vars.base_path }}/"
|
||||
dest: "/var/backups/gitea-{{ gitea.hostname }}.{{ gitea.domain }}@{{ lookup('pipe', 'date -u +%Y-%m-%dT%H:%M:%SZ') }}.tar.gz"
|
||||
force_archive: true
|
||||
format: gz
|
||||
|
@ -16,11 +16,11 @@
|
||||
state: directory
|
||||
owner: root
|
||||
mode: "755"
|
||||
with_items: ["/opt/gitea", "/var/lib/gitea"]
|
||||
with_items: ["/opt/gitea", "{{ gitea_vars.base_path }}"]
|
||||
|
||||
- name: Ensure data and config directories exist
|
||||
ansible.builtin.file:
|
||||
path: "/var/lib/gitea/{{ item }}"
|
||||
path: "{{ gitea_vars.base_path }}/{{ item }}"
|
||||
state: directory
|
||||
owner: "{{ git_user.uid }}"
|
||||
group: "{{ git_user.group }}"
|
||||
|
Loading…
Reference in New Issue
Block a user