// Lesson 49 of 49 · Automation and programmability
Configuration management tools and AI in operations
Configuring one switch by hand is quick. Configuring 400 identically — and proving they stay that way — needs tools.
Why configuration management
- Consistency — every device built from the same template.
- Speed — changes rolled out to many devices at once.
- Fewer errors — no copy-paste mistakes.
- History — configurations stored in source control (Git) with who changed what and when.
A key idea is idempotence: running the same automation twice gives the same result and changes nothing the second time if the device is already correct.
The common tools
| Ansible | Terraform | Puppet | Chef | |
|---|---|---|---|---|
| Model | Push | Push (declarative state) | Pull | Pull |
| Agent on devices | No (uses SSH/API) | No (uses provider APIs) | Yes | Yes |
| Language | YAML playbooks | HCL | Puppet DSL (manifests) | Ruby (recipes, cookbooks) |
| Typical use | Network devices and servers | Cloud and infrastructure provisioning | Servers | Servers |
Ansible is the most common choice for network devices because it is agentless: it connects over SSH or an API.
- name: Ensure VLAN 20 exists on access switches
hosts: access_switches
gather_facts: false
tasks:
- name: Configure VLAN
cisco.ios.ios_vlans:
config:
- vlan_id: 20
name: GUEST
state: merged
AI and machine learning in operations
Modern network platforms use machine learning to spot anomalies (unusual traffic or errors compared with a learned baseline), predict failures, and group related alerts. Generative AI assistants can explain configurations, draft changes and summarise incidents. Treat their output like a junior engineer's work: useful, but always reviewed and tested before it reaches production.
Key points
- Automation brings consistency, speed and an auditable history.
- Idempotent: running it again changes nothing if already correct.
- Ansible = agentless push with YAML; Puppet/Chef = agent-based pull; Terraform = declarative provisioning.
- AI helps detect and explain, but humans approve changes.
Sign in to save your lesson progress across devices. You can read every published lesson without an account.