ansible.builtin.urn test – is the string a valid URN
Note
This test plugin is part of ansible-core
and included in all Ansible
installations. In most cases, you can use the short
plugin name
urn
even without specifying the collections:
keyword.
However, we recommend you use the FQCN for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same test plugin name.
New in ansible-core 2.14
Synopsis
Validates that the input string conforms to the URN standard.
Input
This describes the input of the test, the value before is ansible.builtin.urn
or is not ansible.builtin.urn
.
Parameter |
Comments |
---|---|
Possible URN. |
Examples
# ISBN in URN format
{{ 'urn:isbn:9780302376463' is urn }}
# this is URL/URI but not URN
{{ 'mailto://[email protected]' is not urn }}
Return Value
Key |
Description |
---|---|
Returns Returned: success |