failed play_hosts

Hello,

I am aware that ansible saves a file with hosts that failed to play in .ansible/, but if I set “ignore_errors: True” it doesn’t seem to do this, and more importantly I would like to get a list of the failed hosts while playing, not wait until the play has finished… -Is this possible to do? Basically I want to identify the hosts that doesn’t play due to lack of python or other problem so I can initiate provisioning of these.

"but if I set “ignore_errors: True”

If you ignore errors on a step, that step did not fail, thus the host is not marked failed.

“and more importantly I would like to get a list of the failed hosts while playing, not wait until the play has finished…”

not with the CLI. Ansible Tower 2.0 has some very nice features to show this in the web interface, but the CLI - it would be difficult to find a place to put this in.