0Pricing
Ansible Academy · Lesson

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.ios

All lessons in this course

  1. Automating Network Devices with cli_command
  2. delegate_to & run_once for Orchestration
  3. Coordinate Web, App & DB Tiers
  4. Load Balancer Drain & Re-Enable
← Back to Ansible Academy