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:
parent
2b665bdb1d
commit
77d593a4b9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue