1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

Merge pull request #66 from jogrie/main

fixed backup failure
This commit is contained in:
L3D 2022-01-23 18:06:37 +01:00 committed by GitHub
commit ae060fbc9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,11 +22,10 @@
- "{{ gitea_backup_location }}"
- name: Backing up gitea before upgrade
ansible.builtin.command:
cmd: "gitea dump -c /etc/gitea/gitea.ini"
chdir: "{{ gitea_backup_location }}"
become: true
become_user: "{{ gitea_user }}"
ansible.builtin.command:
cmd: "sudo -u {{ gitea_user }} gitea dump -c /etc/gitea/gitea.ini"
chdir: "{{ gitea_backup_location }}"
when:
- ansible_facts.services["gitea.service"] is defined
- ansible_facts.services["gitea.service"].state == "running"