.. _ansible.utils.resolvable_test: ************************ ansible.utils.resolvable ************************ **Test if an IP or name can be resolved via /etc/hosts or DNS** Version added: 2.2.0 .. contents:: :local: :depth: 1 Synopsis -------- - This plugin checks if the provided IP address of host name can be resolved using /etc/hosts or DNS Parameters ---------- .. raw:: html
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
host
string
/ required
|
A string that represents the IP address or the host name
{'For example': ['docs.ansible.com', '127.0.0.1', '::1']}
|
Key | Returned | Description |
---|---|---|
data
-
|
If jinja test satisfies plugin expression
true If jinja test does not satisfy plugin expression
false |