Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option fail_error to the dig module #12

Open
wants to merge 1 commit into
base: updox-2.8.5
Choose a base branch
from

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
1 participant