ansible.builtin.url (v2.16.5) — test

is the string a valid URL

| "added in version" 2.14 of ansible.builtin"

Authors: Ansible Core

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

Validates a string to conform to the URL standard.

Inputs

    
_input:
    description: Possible URL.
    required: true
    type: string

schemes:
    description: Subset of URI schemas to validate against, otherwise B(any) scheme is
      considered valid.
    elements: string
    type: list

Outputs

_value:
  description: Returns V(false) if the string is not a URL, V(true) otherwise.
  type: boolean