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

fixed backup failure

This commit is contained in:
jogrie 2022-01-23 14:08:46 +01:00 committed by GitHub
parent ccd5582903
commit 7b0180b1f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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