Interview Prep/Ansible/Architecture Decisions and Tool Comparisons

Ansible, Nornir or Terraform for network automation?

IntermediateProductionArchitecture Decisions and Tool Comparisons
Answer
  • Ansible (network_cli, netconf, httpapi connections with cisco.ios, arista.eos, junipernetworks.junos collections): the most common choice. Resource modules (for example cisco.ios.ios_interfaces with state: merged|replaced|overridden) give declarative config, and network engineers can read YAML.
  • Nornir: Python framework, much faster for large device counts, full programming control. Better for teams with strong Python skills.
  • Terraform: good for API-driven network services (cloud networking, SD-WAN controllers, firewalls with providers), not for CLI-based switches.

We start with Ansible for device config and backups, move hot paths to Nornir only when speed or complex logic demands it, and use Terraform for cloud networking.

All Ansible questions Roadmap: Ansible

More on Architecture Decisions and Tool Comparisons