/ansible-net-modules

Network Resource Modules Demo

GNU General Public License v3.0GPL-3.0

Network Resource Modules Demo

Ansible Lint

Dependencies

You need to install Ansible Navigator to run these examples. You can install it with pip install ansible-navigator. This way you can run the playbooks in an Execution Environment, which Ansible Navigator will pull for you.

I use podman as my container engine (container-engine) to fire off the Execution Environment. You can change to another alternative (docker) in the ansible navigator config file.

The examples run against DevNet always-on devices.

Examples

You can run any example by specifying the resource module in the variable rm.

ansible-navigator run main.yml -e rm=acls

Alternatively, you can run them directly as follows.

ACL

ansible-navigator run acls.yml

Banner

ansible-navigator run banner.yml

BGP Global

ansible-navigator run bgp_global.yml

Hostname

ansible-navigator run hostname.yml

L3 Interfaces

ansible-navigator run l3_interface.yml

Logging

ansible-navigator run logging.yml

NTP

ansible-navigator run ntp.yml

OSPFv2

ansible-navigator run ospfv2.yml

Prefix List

ansible-navigator run prefix_lists.yml

SNMP

ansible-navigator run snmp.yml

User

ansible-navigator run user.yml

More information

Collections

Issues

  • iosxr: bgp.router_id nxos: router_id ios: bgp.router_id.address