Automating Network Devices with cli_command
Push config to switches and routers.
Servers Are Not the Only Targets
Ansible can manage routers and switches too, not just Linux hosts. Network automation pushes config to devices over SSH or an API. 🌐
Why Network Devices Are Different
Switches usually lack Python, so Ansible cannot copy modules onto them. The network_cli connection runs commands remotely over the device CLI instead.
vars:
ansible_connection: ansible.netcommon.network_cli
ansible_network_os: cisco.ios.iosAll lessons in this course
- Automating Network Devices with cli_command
- delegate_to & run_once for Orchestration
- Coordinate Web, App & DB Tiers
- Load Balancer Drain & Re-Enable