pabelanger / ansible.network

Ansible Network Collection for network and IP utilities that are not specific to any platform or OS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Network Collection for network and IP utilities that are not specific to any platform or OS, or that interact with any platform os.

CI

The Ansible ansible.network collection includes common content network and IP utilities that are not specific to any platform or OS.

Ansible version compatibility

This collection has been tested against following Ansible versions: >=2.9.10,<2.11.

Plugins and modules within a collection may be tested with only specific Ansible versions. A collection may contain metadata that identifies these versions. PEP440 is the schema used to describe the versions of Ansible.

Included content

Test plugins

Name Description
ansible.netcommon.disabled Case insensitive test for disabled
interface.ip_redirects is ansible.netcommon.disabled
ansible.netcommon.down Case insensitive test for down
interface.oper_state is ansible.netcommon.down
ansible.netcommon.enabled Case insensitive test for enabled
interface.bpdu_guard is ansible.netcommon.enabled
ansible.netcommon.in_any_network Test if an IP or network is in any network
'10.1.1.1' is ansible.netcommon.in_any_network ['10.0.0.0/8', '192.168.1.0/24']
ansible.netcommon.in_network Test if an address or network is in a network
'10.1.1.1' is ansible.netcommon.in_network '10.0.0.0/8'
ansible.netcommon.in_one_network Test if an IP or network is in one network
'10.1.1.1' is ansible.netcommon.in_one_network ['10.0.0.0/8', '192.168.1.0/24']
ansible.netcommon.ip Test if something in an IP address or network
'10.1.1.1' is ansible.netcommon.ip
ansible.netcommon.ip_address Test if something in an IP address
'10.1.1.1' is ansible.netcommon.ip_address
ansible.netcommon.ipv4 Test if something in an IPv4 address or network
'10.0.0.0/8' is ansible.netcommon.ipv4
ansible.netcommon.ipv4_address Test if something in an IPv4 address
'10.1.1.1' is ansible.netcommon.ipv4_address
ansible.netcommon.ipv4_hostmask Test if an address is a hostmask
'0.0.0.255' is ansible.netcommon.ipv4_hostmask
ansible.netcommon.ipv4_netmask Test for a valid IPv4 netmask
'255.255.255.0' is ansible.netcommon.ipv4_netmask
ansible.netcommon.ipv6 Test if something is an IPv6 address or network
'2001:db8:a::123/64' is ansible.netcommon.ipv6
ansible.netcommon.ipv6_address Test if something is an IPv6 address
'fe80::216:3eff:fee4:16f3' is ansible.netcommon.ipv6_address
ansible.netcommon.ipv6_ipv4_mapped Test if something appears to be a mapped IPv6 to IPv4 mapped address
'::FFFF:10.1.1.1'' is ansible.netcommon.ipv4_ipv4_mapped
ansible.netcommon.ipv6_sixtofour Test if something appears to be a 6to4 address
'2002:c0a8:6301:1::1' is ansible.netcommon.ipv6_sixtofour
ansible.netcommon.ipv6_teredo Test if something is an IPv6 teredo address
'2001::c0a8:6301:1' is ansible.netcommon.ipv6_teredo
ansible.netcommon.loopback Test if an IP address is a loopback
'127.10.10.10' is ansible.netcommon.loopback
ansible.netcommon.mac Test if something appears to be a valid mac address
'02:16:3e:e4:16:f3' is ansible.netcommon.mac'
ansible.netcommon.multicast Test for a multicast IP address
'224.0.0.1' is ansible.netcommon.multicast
ansible.netcommon.private Test if an IP address is private
'10.1.1.1' is ansible.netcommon.private
ansible.netcommon.public Test if an IP address is public
'8.8.8.8' is ansible.netcommon.public
ansible.netcommon.reserved Test for a reserved IP address
'253.0.0.1' is ansible.netcommon.reserved
ansible.netcommon.resolvable Test if an IP or name can be resolved via /etc/hosts or DNS
'docs.ansible.com' is ansible.netcommon.resolvable
ansible.netcommon.subnet_of Test if a network is a subnet of another network
'10.1.1.0/24' is ansible.netcommon.subnet_of '10.0.0.0/8'
ansible.netcommon.supernet_of Test if an network is a supernet of another network
'10.0.0.0/8' is ansible.netcommon.supernet_of '10.1.1.0/24'
ansible.netcommon.unspecified Test for a unicast IP address
'0.0.0.0' is ansible.netcommon.unspecifed
ansible.netcommon.up Case insensitve test for up
interface.admin_state is ansible.netcommon.up

Installing this collection

You can install the ansible.network collection with the Ansible Galaxy CLI:

ansible-galaxy collection install ansible.network

You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:

---
collections:
  - name: ansible.network

Using this collection

NOTE: For Ansible 2.9, you may not see deprecation warnings when you run your playbooks with this collection. Use this documentation to track when a module is deprecated.

See Also:

Contributing to this collection

We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the ansible.network collection repository. See Contributing to Ansible-maintained collections for complete details.

You can also join us on:

See the Ansible Community Guide for details on contributing to Ansible.

Code of Conduct

This collection follows the Ansible project's Code of Conduct. Please read and familiarize yourself with this document.

Release notes

Roadmap

More information

Licensing

GNU General Public License v3.0 or later.

See LICENSE to see the full text.

About

Ansible Network Collection for network and IP utilities that are not specific to any platform or OS.

License:GNU General Public License v3.0