mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
resolve linting errors
This commit is contained in:
parent
61a9111c4d
commit
c179060741
4 changed files with 6 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
- name: "Restart gitea"
|
||||
become: true
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: gitea
|
||||
state: restarted
|
||||
when: ansible_service_mgr == "systemd"
|
||||
|
||||
- name: "Reload systemd"
|
||||
become: true
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
when: ansible_service_mgr == "systemd"
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
ansible.builtin.command:
|
||||
cmd: "sudo -u {{ gitea_user }} gitea dump -c /etc/gitea/gitea.ini"
|
||||
chdir: "{{ gitea_backup_location }}"
|
||||
changed_when: true
|
||||
when:
|
||||
- ansible_facts.services["gitea.service"] is defined
|
||||
- ansible_facts.services["gitea.service"].state == "running"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
state: "present"
|
||||
|
||||
- name: Switch shell when not using the builtin ssh server
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
gitea_shell: "/bin/bash"
|
||||
when: "not gitea_start_ssh and gitea_shell == '/bin/false'"
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
url: "{{ gitea_dl_url }}.xz"
|
||||
dest: "/tmp/{{ gitea_filename }}.xz"
|
||||
checksum: "sha256:{{ gitea_dl_url }}.xz.sha256"
|
||||
mode: 0640
|
||||
register: _download_archive
|
||||
until: _download_archive is succeeded
|
||||
retries: 5
|
||||
|
@ -35,6 +36,7 @@
|
|||
ansible.builtin.get_url:
|
||||
url: "{{ gitea_dl_url }}.xz.asc"
|
||||
dest: "/tmp/{{ gitea_filename }}.xz.asc"
|
||||
mode: 0640
|
||||
register: _download_asc
|
||||
until: _download_asc is succeeded
|
||||
retries: 5
|
||||
|
|
Loading…
Reference in a new issue