1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

Bugfix: set -o pipefail fails silently.

This is due the fact that Ansible often takes another default shell
to execute its commands, e.g., /bin/sh.
Solution is to require /bin/bash for the particular command.
This commit is contained in:
Sergej 2020-06-16 08:53:32 +02:00 committed by Thomas Maurice
parent 2b665bdb1d
commit 77d593a4b9

View file

@ -4,6 +4,8 @@
- name: "Check gitea version" - name: "Check gitea version"
shell: "set -eo pipefail; /usr/local/bin/gitea -v | cut -d' ' -f 3" shell: "set -eo pipefail; /usr/local/bin/gitea -v | cut -d' ' -f 3"
args:
executable: /bin/bash
register: gitea_active_version register: gitea_active_version
changed_when: false changed_when: false
failed_when: false failed_when: false