What is a difference between Ansible and Terraform?
- Ansible uses SSH to directly access network devices while Terraform uses providers.
- Ansible uses SSH to directly access network devices while Terraform uses HTTP/HTTPS connections.
- Ansible uses plugins that interact with devices through the RSTCONF API while Terraform uses the NETCONF API.
- Ansible uses plugins that interact with network devices through APIs while Terraform uses HTTP/HTTPS connections.
Explanation: Ansible and Terraform are both IaC with different methods for managing infrastructure. Ansible uses SSH to directly access devices, making it ideal for configuration management on systems where SSH is the main interface. It executes commands and scripts directly on the target device. In contrast, Terraform uses providers, which are plugins that interact with devices through APIs like RESTCONF or NETCONF.
Related exam: 15.8.2 Module Quiz Answers – CCNA 200-301 Exam v1.1 Supplemental Module
