You can do this now w/o waiting for a new feature.

- block:
- win_ping:
  ignore_unreachable: true
  register: ping

-  name: this forces a recoverable fail
   assert:
    that:
       - not ping['unreachable']|default(False)
       - # depending on connection plugin, you can inspect ping['msg']
for the specific auth errors you can rescule

rescue:
   - action: do stuff here



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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CACVha7e6mCWQPvHLTkX2fsn2aY%2BkmD1i-%3DdN0WfoujFyo%2B9oPA%40mail.gmail.com.

Reply via email to