Understanding the differences between our Terraform and Ansible deployments
We have discussed how we can take a cloud-agnostic approach to our deployments when using either Terraform or Ansible, as each tool has built-in functions and logic for manipulating our variables and the output of running tasks.
Some big differences should have become apparent during the code walk-throughs in Chapter 4, Deploying to Microsoft Azure, and Chapter 5, Deploying to Amazon Web Services. I am also sure you are forming an opinion on which of the two tools you prefer.
The two tools are very different in their approach, which is to be expected as they were designed to do two different tasks.
Terraform is primarily designed to manage infrastructure, whereas Ansible manages server and state configuration, which also includes a level of infrastructure management.
During my day job, I have, and continue to use, both tools – so where does the decision to use one or the other come in?
...