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:
parent
ccd5582903
commit
7b0180b1f0
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue