4 ms·
Terraform tracks and provisions cloud provider state. Ansible you need to pass and parse Ansible output around which can take considerable time. Terraform tell
by acd 6y ago
Terraform tracks and provisions cloud provider state.
Ansible you need to pass and parse Ansible output around which can take considerable time.
Terraform tells how your Infastructure should look like.
Ansible what software should be on your infrastructure/servers.
I tend to use Terraform to describe how the underlying Cloud infrastructure should look like.
I use Ansible to describe and configure what software should be running on those servers.
Usage cases:
Simply put Terraform cloud infrastructure provisioning.
Ansible server software and configuration files provisioning.
- peterwwillis 6y agoTechnically Terraform tracks and provisions its own state. The cloud provider's state at any given time may be different, and Terraform may find it impossible to resolve the difference, leaving you to manually fix it. Ansible (mostly) does not refuse to do anything just because the state changed. If you need to make sure something happens, you can be more confident Ansible will do it, because it doesn't care what the state was before now.
- NikolaeVarius 6y agoTerraform does software/config just fine. "Immutable infrastructure" and all