mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
commit
ae060fbc9a
1 changed files with 3 additions and 4 deletions
|
@ -22,11 +22,10 @@
|
||||||
- "{{ 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_user }} 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