Skip to content

ansible fails but no error message

On bastion-01 ansible somehow failed at 2025-10-27 06:17 but there was no error message, the last lines logged in /var/log/ansible.log looked like this:

2025-10-27 06:17:54,994 p=42134 u=root n=ansible INFO| PLAY [all] *********************************************************************
2025-10-27 06:17:54,996 p=42134 u=root n=ansible INFO| TASK [Gathering Facts] *********************************************************

The cronjob looks like this:

15 * * * * env CRONWAIT=1 /usr/bin/ansible-my-wrapper >/dev/null 2>&1

I think the >/dev/null 2>&1 there means that error output (such as from ansible crashing) gets discarded, we might need to change that in order to find out what goes wrong.

This only happened once, ansible has succeeded later.