Index of all Test Plugins
ansible.builtin
ansible.builtin.abs – is the path absolute
ansible.builtin.all – are all conditions in a list true
ansible.builtin.any – is any condition in a list true
ansible.builtin.boolean – Return true if the object is a boolean value.
ansible.builtin.callable – Return whether the object is callable.
ansible.builtin.changed – did the task require changes
ansible.builtin.contains – does the list contain this element
ansible.builtin.defined – Return true if the variable is defined.
ansible.builtin.directory – does the path resolve to an existing directory
ansible.builtin.divisibleby – Check if a variable is divisible by a number.
ansible.builtin.eq – Same as a == b.
ansible.builtin.equalto – Same as a == b.
ansible.builtin.escaped – Check if the value is escaped.
ansible.builtin.even – Return true if the variable is even.
ansible.builtin.exists – does the path exist, follow symlinks
ansible.builtin.failed – did the task fail
ansible.builtin.false – Return true if the object is False.
ansible.builtin.falsy – Pythonic false
ansible.builtin.file – does the path resolve to an existing file
ansible.builtin.filter – Check if a filter exists by name.
ansible.builtin.finished – Did async task finish
ansible.builtin.float – Return true if the object is a float.
ansible.builtin.ge – Same as a >= b.
ansible.builtin.greaterthan – Same as a > b.
ansible.builtin.gt – Same as a > b.
ansible.builtin.in – Check if value is in seq.
ansible.builtin.integer – Return true if the object is an integer.
ansible.builtin.iterable – Check if it’s possible to iterate over an object.
ansible.builtin.le – Same as a <= b.
ansible.builtin.lessthan – Same as a < b.
ansible.builtin.link – does the path reference existing symbolic link
ansible.builtin.link_exists – does the path exist, no follow
ansible.builtin.lower – Return true if the variable is lowercased.
ansible.builtin.lt – Same as a < b.
ansible.builtin.mapping – Return true if the object is a mapping.
ansible.builtin.match – Does string match regular expression from the start
ansible.builtin.mount – does the path resolve to mount point
ansible.builtin.nan – is this not a number (NaN)
ansible.builtin.ne – Same as a .
ansible.builtin.none – Return true if the variable is none.
ansible.builtin.number – Return true if the variable is a number.
ansible.builtin.odd – Return true if the variable is odd.
ansible.builtin.reachable – Task did not end due to unreachable host
ansible.builtin.regex – Does string match regular expression from the start
ansible.builtin.same_file – compares two paths to see if they resolve to the same filesystem object
ansible.builtin.sameas – Check if an object points to the same memory address than another object.
ansible.builtin.search – Does string match a regular expression
ansible.builtin.sequence – Return true if the variable is a sequence.
ansible.builtin.skipped – Was task skipped
ansible.builtin.started – Was async task started
ansible.builtin.string – Return true if the object is a string.
ansible.builtin.subset – is the list a subset of this other list
ansible.builtin.success – check task success
ansible.builtin.superset – is the list a superset of this other list
ansible.builtin.test – Check if a test exists by name.
ansible.builtin.timedout – did the task time out
ansible.builtin.true – Return true if the object is True.
ansible.builtin.truthy – Pythonic true
ansible.builtin.undefined – Like :func:`defined` but the other way round.
ansible.builtin.unreachable – Did task end due to the host was unreachable
ansible.builtin.upper – Return true if the variable is uppercased.
ansible.builtin.uri – is the string a valid URI
ansible.builtin.url – is the string a valid URL
ansible.builtin.urn – is the string a valid URN
ansible.builtin.vault_encrypted – Is this an encrypted vault string
ansible.builtin.vaulted_file – Is this file an encrypted vault
ansible.builtin.version – compare version strings
ansible.utils
ansible.utils.in_any_network – Test if an IP or network falls in any network
ansible.utils.in_network – Test if IP address falls in the network
ansible.utils.in_one_network – Test if IP address belongs in any one of the networks in the list
ansible.utils.ip – Test if something in an IP address or network
ansible.utils.ip_address – Test if something in an IP address
ansible.utils.ipv4 – Test if something is an IPv4 address or network
ansible.utils.ipv4_address – Test if something is an IPv4 address
ansible.utils.ipv4_hostmask – Test if an address is a valid hostmask
ansible.utils.ipv4_netmask – Test if an address is a valid netmask
ansible.utils.ipv6 – Test if something is an IPv6 address or network
ansible.utils.ipv6_address – Test if something is an IPv6 address
ansible.utils.ipv6_ipv4_mapped – Test if something appears to be a mapped IPv6 to IPv4 mapped address
ansible.utils.ipv6_sixtofour – Test if something appears to be a 6to4 address
ansible.utils.ipv6_teredo – Test if something appears to be an IPv6 teredo address
ansible.utils.loopback – Test if an IP address is a loopback
ansible.utils.mac – Test if something appears to be a valid MAC address
ansible.utils.multicast – Test for a multicast IP address
ansible.utils.private – Test if an IP address is private
ansible.utils.public – Test if an IP address is public
ansible.utils.reserved – Test for a reserved IP address
ansible.utils.resolvable – Test if an IP or name can be resolved via /etc/hosts or DNS
ansible.utils.subnet_of – Test if a network is a subnet of another network
ansible.utils.supernet_of – Test if a network is a supernet of another network
ansible.utils.unspecified – Test for an unspecified IP address
ansible.utils.validate – Validate data with provided criteria
community.general
community.general.a_module – Test whether a given string refers to an existing module or action plugin
community.general.ansible_type – Validate input type
community.general.fqdn_valid – Validates fully-qualified domain names against RFC 1123