Random anisble failures due to tmp files not found

Anyone else seeing random playbook execution failuers like this:

`
Source /home/user/.ansible/tmp/ansible-tmp-1551917585.84-139567381415844/source not found"}

`

Any idea what is causing them and how to fix it?

Thanks

Anyone else seeing random playbook execution failuers like this:

Source /home/user/.ansible/tmp/ansible-tmp-1551917585.84-139567381415844/source
not found"}

No, you must have some issues with your setup.

Any idea what is causing them and how to fix it?

Running with -vvvv might give you some more information.

Anyone else seeing random playbook execution failuers like this:

Source /home/user/.ansible/tmp/ansible-tmp-1551917585.84-139567381415844/source
not found"}

No, you must have some issues with your setup.

Maybe but highly unlikely. This happened during provisioning of 20 EC2 instances with same ansible config and same repository and 19 were successful but 1 failed with the error. All instances autoprovision them self locally and the one that failed has hundreds of tasks successfully executed before the failed one.

I remember seeing an issue where the OP found out that the:

remote_tmp = $HOME/.ansible/tmp

settings works unreliably and ansible looses the tmp path being unable to resolve the $HOME env var. I tried googling it up again but can not find it now :-/

Any idea what is causing them and how to fix it?

Running with -vvvv might give you some more information.

That’s hard since replaying the whole playbook several times after the failure shows no issues at all.

FWIW found the reference:

https://github.com/dw/mitogen/issues/301#issuecomment-404620821
https://github.com/ansible/ansible/issues/31617