mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
#17 fix the quality score of the module
This commit is contained in:
parent
6cbbbfdf0e
commit
37b1ff8837
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: "Check gitea version"
|
- name: "Check gitea version"
|
||||||
shell: "/usr/local/bin/gitea -v | cut -d' ' -f 3"
|
shell: "set -eo pipefail; /usr/local/bin/gitea -v | cut -d' ' -f 3"
|
||||||
register: gitea_active_version
|
register: gitea_active_version
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
force: true
|
force: true
|
||||||
notify: "Restart gitea"
|
notify: "Restart gitea"
|
||||||
when: (gitea_version_check == false) or (gitea_active_version.stdout != gitea_version)
|
when: (not gitea_version_check) or (gitea_active_version.stdout != gitea_version)
|
||||||
|
|
||||||
- include: create_user.yml
|
- include: create_user.yml
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue