crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Define some common difference in between Terraform and Ansible?
Question Posted on 01 Feb 2024Home >> Tools >> Terraform >> Define some common difference in between Terraform and Ansible?

Define some common difference in between Terraform and Ansible?
Below are the some common differene in between Terraform and Ansible:-
0
0

NumberBase of differenceTerraformAnsible
1TypeWhen we say about the type of Terraform, it is an orchestration tool.When we say about the type of Ansible, it is a configuration management tool.
2LanguageWhen we say about the language in Terraform it follows a declarative language.When we say about the language in Ansible, this will follows a procedural language.
3InfrastructureTerraform provides support for immutable infrastructure.Well on the otehr hand Ansible provides support for mutable infrastructure.
4Packaging and templatingTerraform provides partial support for Packaging and templatingOn the other hand Ansible provides complete support for Packaging and templating
5VM ProvisioningTerraform provide comprehensive VM provisioning, networking and storage management. Ansible provides partial VM provisioning, networking and storage management.
6WriteHCL(HashiCorp Configuration Language) is mainly used to write Terraform scripts. And this is a domain specific language created for describing infrastructure.Ansible uses YAML (Yet ANother Markup Language) for writing playbooks, whcih are the configurations and automation sequences.
7WorkflowWhen we say about the workflow, Terraform follows mainly two step process. ANd these two process are Plan and apply. We can create a Terraform script by describing the desired infrastructure, run the Terraform plan to see the changes that will be made, and then execute Terraform to apply those changes.Ansible operates in a more imperative fashion. You define tasks in playbooks, and Ansible executes them on the target machines. There isn't a separate planning step like in Terraform.
8Lifecycle managementTerraform will support lifecycle management.Ansible will not support lifecycle management.
9Open SourceIt is open source but now a days some change are in progress.Open source
10ArchitectureClient onlyClient only
11CloudAll cloudsAll clouds
12Execution ControlYes here we have execution control.No here any of computer can be a controller.
13Agent requirementTerraform not require any extra agent to install.Ansible will also not require any extra agents to be installed on the server to install.
14Master ServerTerraform is also master less. It communicates with the cloud providers using API. And they do not require any extra infrastructure authentication mechanism. Ansible is master less. Some other tools like chefs, puppets require the master server to store the changes and distribute the update but there are disadvantages such as extra secuirty and infrastructure maintenance which incurs cost.


.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Which of the following are advantages of using backend?

Order of declaration of variables in terraform?

Which of the following is a interpolation syntax for name?

HCL Stands for?

Which of the following is the correct format to define type and name of resource of virtual network






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap