My goal is to fail all hosts when a run_once, delegated task fails. In my specific case there was an ssh failure to the delegated host. I’ve simplified my playbook to the following:
FWIW, this is fixed in 2.0.2.0 RC1 (thanks James!):
commit 2248b882c1c9ff79498db307938ed6f00137845b
Author: James Cammarata
Make sure run_once tasks also set any_errors_fatal so all hosts fail
Currently implemented only in the linear strategy (free strategy simply
ignores run_once/BYPASS_HOST_LOOP actions).
Fixes #14252