urn¶
Collection Note
This module is part of the ansible.builtin collection. To install the collection, use:
Added in version2.14.
Synopsis¶
- Validates that the input string conforms to the URN standard.
Parameters¶
| Parameter | Defaults / Choices | Comments |
|---|---|---|
| _input string required |
Possible URN. |
Examples¶
# ISBN in URN format
{{ 'urn:isbn:9780302376463' is urn }}
# this is URL/URI but not URN
{{ 'mailto://nowone@example.com' is not urn }}
Return Values¶
| Key | Data Type | Description | Returned |
|---|---|---|---|
| _value | boolean | Returns V(true) if the string is a URN and V(false) if it is not. |
Authors¶
- Ansible Core