Re: [ansible-devel] Classifying authentication errors within modules as an error instead of unreachable

2021-11-04 Thread Brian Coca
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']

[ansible-devel] Classifying authentication errors within modules as an error instead of unreachable

2021-11-04 Thread Jimmy Fort
For some background, this was initially an RFE that was opened from a Red Hat support ticket. https://github.com/ansible/ansible/issues/76227. Here's where I'm struggling with this. I have a playbook that creates a VM in vCenter, sets it up for WinRM, and then applies some OS configs (updates