Automation · Cisco Automation
Configuration Deployment
Cheat sheet · https://pcornel.dk/topic.php?topic=5646
Answer
Configuration deployment pushes changes to Cisco devices from templates and variables, with pre-checks, diff, commit or copy run start and post-checks, one batch of devices at a time.
Remember
- Render configs from templates and variables.
- Push to a small batch first.
- Verify and save after each batch.
First checks
ansible <dev> -m cisco.ios.ios_config -a 'src=rendered.cfg' --check --diff— previewconfigure replace flash:<file> list— replace with diff- configure replace … revert trigger timer — safety
Commands
show archive config differences nvram:startup-config system:running-config- Read-only/validation observation for configuration differences between startup and running state.
Verify in this order
rendered config → diff → apply → verify → save
Where it usually breaks
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5646