Skip to content

How Can You Achieve terraform destroy like Functionality with Ansible ? #91

Answered by rixhieloomis
rixhieloomis asked this question in Q&A
Discussion options

You must be logged in to vote

When discussing how to destroy infrastructure with Ansible in a way similar to Terraform’s terraform destroy command, it's important to understand the key differences in how these tools handle infrastructure.

Terraform vs. Ansible for Destroying Infrastructure

Terraform

  • Terraform is designed for full infrastructure lifecycle management, including provisioning, updating, and destruction.
  • The terraform destroy command uses the same infrastructure code to tear down resources, leveraging a state file to track and understand the dependencies between resources.
  • Terraform automatically handles the order in which resources should be destroyed, preventing dependency issues (e.g., not trying to de…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rixhieloomis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant