I forgot to mention, the reason your rescue does not work is because
the task did not fail, but the host was unreachable.
block/rescue/always only acts on task failure, not host being
unreachable.

In my example above I ignore unreachable and task errors so the '2nd
play' can handle them differently.

-- 
----------
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7f1TPuddXu8fUJ%3DCgRM86AigR6PQ-yqRWLm%2BgPYFf1ugg%40mail.gmail.com.

Reply via email to