1
1
Fork 0
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:
Thomas Maurice 2019-04-30 19:16:33 +01:00
parent 6cbbbfdf0e
commit 37b1ff8837

View file

@ -1,6 +1,6 @@
---
- 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
changed_when: false
failed_when: false
@ -15,7 +15,7 @@
mode: 0755
force: true
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