Skip to content

Add an option fail_error to the dig module#12

Open
estheruary wants to merge 1 commit intoupdox-2.8.5from
dig-fail-on-nxdomain
Open

Add an option fail_error to the dig module#12
estheruary wants to merge 1 commit intoupdox-2.8.5from
dig-fail-on-nxdomain

Conversation

@estheruary
Copy link

Adds an option to the dig module fail_error which turns NXDOMAIN, Timeout, and NoAnswer responses into errors instead of what currently happens which is it returns the string "NXDOMAIN" or "".

Example:

{{ lookup('dig', 'van-importantsite.updoxbc.com', fail_error=True) }}

When `fail_error=True` things like NXDOMAIN, NoAnswer, and Timeouts will
be errors instead of returning 'NXDOMAIN' or ''.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant