Ansible vs. Terraform: What's the difference?

  Рет қаралды 184,504

IBM Technology

IBM Technology

Күн бұрын

Explore guide to Terraform → ibm.biz/guide-to-terraform
Explore guide to Infrastructure as Code → ibm.biz/guide-to-iac
Watch "Terraform Explained" lightboard video → • Terraform Explained
Watch "What is Ansible?" lightboard video → • What is Ansible?
Watch "What is Infrastructure as Code?" → • What is Infrastructure...
► Check out IBM Cloud Schematics → ibm.biz/schematics
► Check out IBM Cloud Satellite → ibm.biz/prod-satellite
► Check out IBM Cloud Paks → ibm.biz/product-cloud-paks
Ansible and Terraform are both great tools that you can turn to for creating Infrastructure as Code (IaC) which can be used to deploy repeatable environments for automating your infrastructure. However, what is the difference between the two? When should you pick one over the other?
In this lightboard video, Sai Vennam with IBM Cloud, dives deep into how Ansible and Terraform both serve different purposes as well as complement each other for automating infrastructure.
Earn a badge with FREE interactive Kubernetes labs → ibm.biz/interactive-k8-learning
Get started on IBM Cloud at no cost → ibm.biz/cloud-free-acct
Subscribe to the IBM Cloud channel to be notified when a new video drops → ibm.biz/subscribe-now
#Ansible #Terraform #ITAutomation

Пікірлер: 91
@shyamutty
@shyamutty 3 жыл бұрын
Similarities: supports templating, open source, agentless (plug and play), infrastructure as a code, provisioning infrastructure Terraform: primary use as infrastructure provisioning tool, declarative (define what end result you want), state management, new and evolving Ansible: primary use as configuration tool, hybrid, no lifecycle management We can both as complementary: * Start with Terraform: use Terraform to spin up an infrastructure, once infra is ready, use Terraform to call Ansible to do config management on the resources you spun up. * Start with Ansible: in Step1 of playbook: call Terraform to spin up infra and then pick up where Terraform leaves off, take that infra and run the Ansible actions on that
@cyclonus01
@cyclonus01 2 жыл бұрын
you da real MVP
@aamirprincedjearam8817
@aamirprincedjearam8817 3 жыл бұрын
I love how whenever Sai hosts a Vs. video, he always starts by saying they are complementary tools
@DaveOtteman
@DaveOtteman 3 жыл бұрын
thanks Sai. Great presentation. You do a great job of explaining these complex topics in an understandable way. Cheers!
@AbdullahOllivierreIT
@AbdullahOllivierreIT 2 ай бұрын
Here’s a summary of the key differences and synergies between Terraform and Ansible as explained in the KZbin video: 1. Purpose and Functionality: • Terraform is primarily used for provisioning infrastructure in a declarative manner, allowing users to define what the infrastructure should look like and then automatically managing the creation process to match that definition. • Ansible excels in configuration management and application deployment. It can also provision infrastructure, but it operates in a more procedural/hybrid manner, where actions are executed in the order they are defined. 2. Operational Method: • Terraform operates declaratively, automatically handling dependencies and order of operations, which means it can execute tasks in an optimized sequence based on resource dependencies. • Ansible is more procedural, where tasks are run in the sequence they are written, though it supports declarative elements. This requires careful planning of task order to ensure operations are performed correctly. 3. State Management and Idempotency: • Terraform tracks the state of the infrastructure and applies changes incrementally to avoid re-provisioning resources that are already in the desired state. This state management also allows Terraform to remove resources when their definitions are deleted from the configuration. • Ansible does not track state in the same way, so lifecycle changes need to be manually managed. While Ansible tasks can be made idempotent, this is not automatic and must be explicitly designed into the playbooks. 4. Community and Extensions: • Both tools boast strong community support and extensive libraries of modules or playbooks that facilitate quick setup and integration with various technologies. Terraform has the Terraform Registry, and Ansible has Ansible Galaxy. 5. Integration and Usage Together: • The two tools are complementary when used together within an automation workflow. Terraform can be used to provision the initial infrastructure, which can then be managed and configured by Ansible, integrating their strengths for a robust automation strategy. This explanation highlights that while Terraform and Ansible have some overlapping capabilities, they each have unique strengths that make them suitable for different aspects of infrastructure automation.
@vasudevadernierstuff
@vasudevadernierstuff 3 жыл бұрын
good to know that we could really work together combining Ansible and terraform
@mstevensn50
@mstevensn50 9 ай бұрын
Awesome explanation I really appreciate you going over the differences between Terraform and Ansible.
@satishsindiri713
@satishsindiri713 3 жыл бұрын
Liked it very much. Helps a layman like me to understand the concepts. Keep doing more of it
@michaelmcgillivray2485
@michaelmcgillivray2485 Жыл бұрын
Great video as always Sai! I love your style of breaking down seemingly complex topics like this into easily digestible tidbits. IBM / Red Hat is lucky to have you as an architect / engineer.
@StevenJSMin
@StevenJSMin 3 жыл бұрын
It was a good explanation that reminded me of what I knew and what I am currently doing. I totally agree with the opinion that Ansible and Terraform can be used together. However, in reality, if our colleague have enough experience with these two scripts, there will be no problem, I am a little curious as to whether there will be sensibility when considering the learning cost. Thanks, Sai
@kristopherleslie8343
@kristopherleslie8343 3 жыл бұрын
This guy is clear and methodical
@AnjalySB
@AnjalySB 2 жыл бұрын
Great presentation!
@davidsalleyezonme1283
@davidsalleyezonme1283 2 жыл бұрын
Great explanation good job @IBM Technology
@MsRen2009
@MsRen2009 3 жыл бұрын
Great info from the layman term & a newbies started to know about all these..
@JamesJSwiftJay
@JamesJSwiftJay 3 жыл бұрын
This channel is a pillar of knowledge for people who want to understand infrastructure. It has helped me greatly, thank you for sharing your knowledge.
@IBMTechnology
@IBMTechnology 3 жыл бұрын
Glad to be of help, James! Thank you for watching! 👍
@angsh
@angsh 3 жыл бұрын
Brilliant! Thank you Sai.
@SpeedyWinds
@SpeedyWinds 4 ай бұрын
Nice, well explained!!!
@nischalreddy27
@nischalreddy27 Ай бұрын
Great explanation
@kiddflux
@kiddflux Жыл бұрын
Great video. Thank you so much
@GigiAmorronso
@GigiAmorronso 2 ай бұрын
many thanks for that comparison!
@venkatasunkari7270
@venkatasunkari7270 2 жыл бұрын
Excellent Great presentation
@rajithkumar3424
@rajithkumar3424 Жыл бұрын
Nice presentation
@khalidelgazzar
@khalidelgazzar 16 күн бұрын
Great video 😊 thank you
@Nobo_On_The_Rocks
@Nobo_On_The_Rocks Жыл бұрын
Terraform has USERDATA, template_file for setting up and running your app too. So that necessarily fills the void for configuration management which ansible does
@zhentaomi9448
@zhentaomi9448 Жыл бұрын
good explanation
@andukz
@andukz 3 жыл бұрын
Can we appreciate how he writes from the other side of the pane? :)
@timweissenfels5353
@timweissenfels5353 3 жыл бұрын
The video is mirrored
@lmb_codes
@lmb_codes 3 жыл бұрын
The magic of video editing 🤣
@amused_harry
@amused_harry 8 ай бұрын
It never gets old
@donaldkennedy7993
@donaldkennedy7993 Жыл бұрын
Great comparison :)
@tushu24897
@tushu24897 3 жыл бұрын
That really helped.
@MisteretsiM101
@MisteretsiM101 3 жыл бұрын
great info, im just amazed at the mirrored writing
@martinkulik9466
@martinkulik9466 3 жыл бұрын
so they mirrored the video, from right to left, so his right arm appears left and the text is readable? am I right
@IBMTechnology
@IBMTechnology 3 жыл бұрын
You are right! We shared some backstage "secrets" of our videos on the Community page, check it out here 👉 ibm.co/3pZKqWQ 😉
@JB-mn4ff
@JB-mn4ff Жыл бұрын
0:41 I usually say, "Terraform is idempotent" which sparks the conversation, "What is that?!" That sets the foundation well. "Declarative" tells only part of the picture. Idempotency isn't mentioned until 6:32, and then in an indirect way re. Ansible modules.
@khaktus
@khaktus 2 жыл бұрын
unnecessary confusion: the other video for Ansible stated that it is clearly declarative ... here Ansible is hybrid while Terraform is declarative Ansible video said A. is good for Provisioning, Config and eventually App deployment ... here Ansible is more for Config and App deployment while Terraform better for Provisioning
@Ray_TambaBudol_Marcos
@Ray_TambaBudol_Marcos 2 жыл бұрын
Yet just subscribe, this is powerful stuff.
@safiyyakareem6438
@safiyyakareem6438 3 жыл бұрын
Now I understand the difference between Ansible and Terraform 🚀
@codelucky
@codelucky 3 жыл бұрын
I wish to see a complete DevOps course by IBM Cloud engineers/KZbinrs/Tutors.
@mfolarin
@mfolarin 3 жыл бұрын
Edureka has full-length DevOps tutorial. DevOps Journey could be useful for tool-specific explore
@loveanimals-0197
@loveanimals-0197 3 жыл бұрын
There's an IBM Training course called QZC50G (DevOps with Private Cloud...). That's the course code. Google it.
@kihunkim9122
@kihunkim9122 8 ай бұрын
I got my RHCSA and studying for RHCE now. What positions are most related to these two cert except for Linux admin? I'm looking for a Linux admin position but there are not many.. so i was thinking maybe learning more skills and search for other positions as well!
@blu3h4t
@blu3h4t 2 жыл бұрын
Thanks
@sandeepsahu1716
@sandeepsahu1716 2 жыл бұрын
How to run the shell scripts in one gofor multiple servers without using ansible..any alternative please
@KarmaTheory
@KarmaTheory 3 жыл бұрын
I am more interested in, what do you use to make a video like that, like writing on screen stuff!
@VVerVVurm
@VVerVVurm 2 жыл бұрын
aand he is writing left handed _and_ in perfect mirror writing .. I think he is just flexing on us.. ;)
@cheapnews1023
@cheapnews1023 2 жыл бұрын
@@VVerVVurm it's software rendered idiot
@nyny
@nyny Жыл бұрын
@@VVerVVurm at the 3 minute marked i figured out how he did it haha.. but before that I was thinking, he found his niche and his special value proposition
@dinh2h
@dinh2h Жыл бұрын
interesting!
@frkntony
@frkntony 3 жыл бұрын
Hello, IBM cloud team :). Could you share with us your knowledge about IOPS in the future?
@frkntony
@frkntony 3 жыл бұрын
I come from a soft-dev background. While I know a lot about linux I sure don't know a lot about it's performance & configuration. Recently, I had a case where IOPS was slowing down my TeamCity build agent. Mb you could explain IOPS in a nutshell or bind it to another interesting topic. I wonder how many viewers would like to hear about this topic as well. Upvote if you are interested :J.
@ftate
@ftate 3 жыл бұрын
@@frkntony Can you elaborate more on your question? IOPS (Input/Output Operations Per Second) is a performance measurement that may be affected by numerous different factors, both hardware and software. Information about how this metric is obtained and/or calculated won't help you improve the performance of any software you're using, IMO. With that in mind, can you provide more background or a "user story" about the information you're interested in?
@jackakif
@jackakif 2 жыл бұрын
nice
@attilapinter7141
@attilapinter7141 2 жыл бұрын
Really nice, but Ansible is item potent OOTB.
@Learner-hg4hj
@Learner-hg4hj 4 ай бұрын
Ansible and Terraform complement each other's deficiencies and can make the impossible installations using automation possible- 100 percent complete...Terraform is the husband and Ansible is the wife - A marriage between IaC and CaC ! One is declarative and other imperative...and they are both cooperative ...and collaborative.. Two Robust tools that can accomplish something to perfection ! They are indivisible ! Terraform builds the house and ansible added hue and color to it
@nandap9451
@nandap9451 3 жыл бұрын
Good one .. Recommended 1.5x
@shubhamraghuwanshi2197
@shubhamraghuwanshi2197 3 жыл бұрын
Looking for jobs in IBM please help me to get.
@khaktus
@khaktus 2 жыл бұрын
unnecessary confusion: the same for idempotency: Ansible video states idempotency is one of its basic characteristics, here it is actually Terraform that is idempotent automatically, while with Ansible one has to watch over it to ensure it and not to make multiple actions on the infrastructure ??? !!!
@owenzmortgage8273
@owenzmortgage8273 2 жыл бұрын
PPT, everyone doing ppt, not on clear board, we can’t see that well.
@benpracht2655
@benpracht2655 2 жыл бұрын
How did you learn to write in reverse?
@bultvidxxxix9973
@bultvidxxxix9973 Жыл бұрын
You write normal and then mirror the video.
@ruvasqm
@ruvasqm 7 ай бұрын
how does he write? Can someone explain what is going on?
@IBMTechnology
@IBMTechnology 7 ай бұрын
See ibm.biz/write-backwards
@basicfit287
@basicfit287 Жыл бұрын
Dude is the Bob Ross of Tech
@igadgetuzgaming
@igadgetuzgaming 2 жыл бұрын
👍👍👍
@cjbidwell
@cjbidwell Жыл бұрын
Wait a sec, are you writing backwards here?? haha! Very cool presentation
@JivanPal
@JivanPal 2 жыл бұрын
For the captioner: It's "idempotent", not "item potent".
@IBMTechnology
@IBMTechnology 2 жыл бұрын
Thank you so much for catching that! We just updated it in the closed captions.
@hansvetter8653
@hansvetter8653 2 жыл бұрын
Alright ... Terraform for provisioning ... and ... Ansible for configuration ... But the real need for both begins only with the need to replicate ... ! ... automatically ... ! ...
@LNVACVAC
@LNVACVAC 3 жыл бұрын
I looked at the title and wondered if I was in Ender's universe.
@thecloudterminal
@thecloudterminal Жыл бұрын
Thank you for this amazing content
@genericdeveloper3966
@genericdeveloper3966 10 ай бұрын
I didn't like using Ansible because when it fails it often just hangs and doesn't tell me anything.
@chamini2
@chamini2 3 жыл бұрын
Is he writing backwards?
@frkntony
@frkntony 3 жыл бұрын
IaC is so hot.
@andiidoode
@andiidoode 2 жыл бұрын
"not necessarily" doesn't make for a clear explanation. Could you put " configuration management" into context?
@teknikalyfit
@teknikalyfit 3 жыл бұрын
Ansible can replace Terraform, not vice versa.
@abu3ibaadillaah
@abu3ibaadillaah 2 жыл бұрын
I've been using Ansible for nearly 2 years... after being a system administrator on Linux since 1995. Ansible is completely capable of provisioning infrastructure. It is also extremely good at idempotency and allowing you NOT to do that when necessary. In my team, Ansible is all we use and need. There is Negative business value in using two such similar tools in a complementary way within one team. Ansible is more than enough. I suspect there are Terraform teams out there who have also succeeded. Both together is a waste.
@pyalgoGPT
@pyalgoGPT Жыл бұрын
Bible of IaC in 10 mins ... Should be the video template...
@loupax
@loupax 2 жыл бұрын
Sorry, got distracted wondering how they do the "write in reverse" trick
@IBMTechnology
@IBMTechnology 2 жыл бұрын
No need to get distracted. 😉 Here's how we do it 👉 ibm.co/3DtdHiF
@user-pc4i8ege55
@user-pc4i8ege55 3 жыл бұрын
"declarative is awesome because on this step we created some DBs..." Doesn't sound convincing enough. I still can't understand what makes you sacrifice all those loops and conditionals if a programming language in favor of very dubious advantages of declarative description AND re-implement loops and conditionals in an especially awkward way, like 'count' in TF. After all, all that 'declarativeness' is just visibility that hides a normal imperative approach. 'Programming' in YAML/HCL/JSON/whatever is much more difficult than using a DSL to write idempotent scripts without sacrificing anything. The Chef approach is superior to that of Ansible and TF, IMHO. As for TF's ability to destroy resources by simply deleting them from a module, it's provided by storing all actions in the state file, not by TF being allegedly declarative, I think. If Ansible or Chef saved their earlier actions, they would be able to roll them back
@maikelfm9520
@maikelfm9520 3 жыл бұрын
I'm so confused at how was this video made?
@maciejbrzeski9740
@maciejbrzeski9740 3 жыл бұрын
I think he just wrote on glass, and they just mirrored the video before publishing it. He is wearing a plain black shirt on purpose, so it is hard to notice. It's just my guess, though. EDIT: this setup is called Lightboard, look it up :)
@IBMTechnology
@IBMTechnology 3 жыл бұрын
You're right! 😉 We shared some backstage "secrets" of our videos on the Community page, check it out here 👉 ibm.co/3iL1azl
@OMKARKULKARNIorkul1991
@OMKARKULKARNIorkul1991 10 ай бұрын
It’s glass he stood at correct location what u see is illusion
@IBMTechnology
@IBMTechnology 9 ай бұрын
See ibm.biz/write-backwards
@manzo4581
@manzo4581 2 жыл бұрын
You might want to fix your eng(US) subtitles, it's "idempotency" he's talking about, no such thing as "item potency"
@owenzmortgage8273
@owenzmortgage8273 Жыл бұрын
Not a good PPT, not a good idea to handwriting on clear panel.
@dledgerxyz2531
@dledgerxyz2531 Жыл бұрын
There is zero need for ansible if you already use terraform. I repeat, ZERO. This ridiculous bloath is the reason why companies are slashing workers today. To be fair to ansible, I would regard the approach as that of apple OR android not apple AND android
@owenzmortgage8273
@owenzmortgage8273 Жыл бұрын
Just do a PPT, it is terrible for people to see what you want to present because your handwringing on a clear glass is mess, not fancy at all, don’t cut corner just do a professional PPT
GitOps on Multicloud Explained
5:27
IBM Technology
Рет қаралды 9 М.
What is Ansible?
11:06
IBM Technology
Рет қаралды 167 М.
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 26 МЛН
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 58 МЛН
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 2 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 52 МЛН
Why You NEED To Learn Terraform | Practical Tutorial
27:33
Travis Media
Рет қаралды 99 М.
Automating my Homelab with Ansible
13:18
Jeff Geerling
Рет қаралды 330 М.
Что такое Terraform?
6:43
Merion Academy
Рет қаралды 37 М.
31. CloudFormation or Terraform?
30:22
AWS Bites
Рет қаралды 1,9 М.
Containers vs VMs: What's the difference?
8:08
IBM Technology
Рет қаралды 742 М.
Terraform Explained
8:44
IBM Technology
Рет қаралды 266 М.
Kubernetes vs. Docker: It's Not an Either/Or Question
8:04
IBM Technology
Рет қаралды 1,1 МЛН
you need to learn Ansible RIGHT NOW!! (Linux Automation)
21:21
NetworkChuck
Рет қаралды 849 М.
Terraform explained in 15 mins | Terraform Tutorial for Beginners
18:15
TechWorld with Nana
Рет қаралды 1,5 МЛН
Секретный смартфон Apple без камеры для работы на АЭС
0:22
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 619 М.
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 1,3 МЛН
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 6 МЛН
Asus  VivoBook Винда за 8 часов!
1:00
Sergey Delaisy
Рет қаралды 1 МЛН
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 49 МЛН