Skip to content

Commit b4e5123

Browse files
committed
ci: make the output of a failed task human readable
See https://stackoverflow.com/questions/37171966/clean-error-output-in-ansible-playbook [skip ci]
1 parent a91f4f6 commit b4e5123

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/scripts/ci/deploy.sh

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ trap 'cleanup' EXIT SIGHUP SIGINT SIGTERM
2525
# See: https://docs.ansible.com/ansible/2.9/user_guide/connection_details.html#host-key-checking
2626
export ANSIBLE_HOST_KEY_CHECKING=False
2727

28+
# Make the output of a failed task human readable.
29+
# See: https://docs.ansible.com/ansible/2.9/reference_appendices/config.html#envvar-ANSIBLE_STDOUT_CALLBACK
30+
export ANSIBLE_STDOUT_CALLBACK=debug
31+
2832
if [ -z "${encrypted_bf07cb25089f_key:-}" ] || [ -z "${encrypted_bf07cb25089f_iv:-}" ] ; then
2933
echo >&2 'ERROR: encrypted_bf07cb25089f_key or encrypted_bf07cb25089f_iv were not defined!'
3034
exit 1

0 commit comments

Comments
 (0)