Skip to content

test plugins

This is the list of test plugins in the ansible.utils collection:

Plugin Description
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