Ansible. Need I say more? Well, maybe, if you’ve never heard of it. Ansible is a simple IT / DevOps automation that anyone can use. You can Automate anything with an SSH connection and WITHOUT installing any agents or clients. Join me as we set up, configure and start automating with Ansible!
See our collection of common homelab ansible playbooks here!
★ Subscribe! https://l.technotim.live/subscribe
★ I’m Live on Twitch https://l.technotim.live/twitch
★ Get Help in Our Discord Community! https://l.technotim.live/discord
★ Subscribe to Techno Tim Talks! https://l.technotim.live/subscribe-ttt
★ Documentation found here https://l.technotim.live/docs
⚙ Gear Recommendations ⚙
(Affiliate links may be included in this description. I may receive a small commission at no cost to you.)
♦ Patreon https://l.technotim.live/patreon
♦ GitHub https://l.technotim.live/github
♦ Twitch https://l.technotim.live/twitch
♦ Twitter https://l.technotim.live/twitter
♦ Discord http://l.technotim.live/discord
♦ Instagram https://l.technotim.live/instagram
♦ Facebook https://l.technotim.live/facebook
♦ TikTok https://l.technotim.live/tiktok
00:00 – Intro
00:51 – The problem at hand
01:15 – What is Ansible? Ansible 101
01:35 – Ansible use cases
02:18 – Ansible requirements and setting up our workstation
03:22 – Ansible & SSH
04:02 – Ansible Inventory files
05:20 – Ansible module commands
06:18 – sshpass program
06:52 – What are you we going to automate now?
07:14 – Ansible Playbooks
07:48 – Ansible playbooks yml
08:04 – Create a playbook using the Ansible apt module
09:22 – command with ask-become-pass
10:05 – Execute our apt upgrade playbook
11:16 – Create a playbook to install software
13:06 – Create a playbook that uses a template with multiple tasks
15:56 – Execute our playbook that starts / stops / copies file
16:42 – My challenge to you!
17:12 – Do you use Ansible?
17:46 – Stream Highlights – It’s overwhelming all of the knowledge I need…
#Ansible #Homelab #TechnoTim
“Hadron Collider” is from Harris Heller’s album Ego.
Thank you for watching!
What will you automate with Ansible? Updates? Reboots? Software installs? Something else?
Its so satisfying to see all my VMs updated all at once
Short and maybe stupid q, but how can you make playbooks to run automatically, to be scheduled, only via crontab ? I also readed something about ansible tower but I think it's not free, thank you!
I did get to the docs with the link you sent thanks for the reply.
Tim your videos are great, but the documentation link is broken so I can't get all the commands you are typing
One of the most underrated channels in all of YT.
How you will do if each node have a different root password?
This is the automation software I didn’t know I needed. You’ve saved me countless hours remoting into VM’s and RPI’s to update on a weekly maintenance schedule! Thanks Tim!
Tim, just found your video and love your teaching style. Great presentations and very easy to understand. I have to learn ansible for work and this helps 100%. See you on twitch!
An update on usage. Not sure why but the ansible ping wouldn't work. The following worked for me on Arch Linux "ansible -i <inventory> -m ping <group> …. " i.e. the group name needs to come after the module.
Not using ansible yet, but eventually. I want to learn it for work, to automate tasks at work.
Tim, thank you for taking the time to put this together for us. I really appreciate your teaching style and how you compartmentalize different tools and subjects the best you can. For example here you reference best practices via SSH keys, but chose not to go into it. I remember teaching myself about keys from Google and how it seemed like a huge deal at the time. Had that been included in this tutorial, many would have felt it to be overwhelming as you said. I am going to use your strategy of "containerizing" the subjects as I train my team in the future, thanks again.
Awesome, Thanks again TechnoTim. I really enjoy dabbling with all this.
i loved the intro, I wasn't sure what ansible was. You grave a great overview, and then when into the technical. I got to learn what.I needed/wanted about ansible. I learned that it;s a cool tool for automating repetitive tasks, primarily for ssh tasks.
This is something that I'll never need, it was nice to bug out before the technical, knowing this will be an awesome video, just not my video. But I still throw in a like and this comment to make the interactions high!!! Because it was awesome that I got to not have to sit through technical, trying to figure out what the hell the tool does!!!
Thanks 👍😊 simple & to the point
Great video! The best one I found about Ansible. Thanks man!
Very clear and concise thank you!!
I have used Ansible on my home lab for years. It's the only one that "just works" and requires so little prep on the servers.
Bro you are literally a godsend. I've been updating all my servers like a peasant and now i can streamline this whole process! Keep up the fantastic work!
Is there any reason which you chose Ansible instead of a tool like Terraform? I actually use both Terraform for infrastructure management and Ansible for the actual config.
Your videos have a clarity of purpose about them and a method and the way you explain what it is you are working to get across – its top notch stuff.
I confess, I personally struggle to get any enjoyment out of scripting works and similar. It makes huge sense if you run fleets..
Cool story bro. I learned a few things
6 month later, i learning about this XD
I always wanted to learn Ansible, but all videos and websites were very complicated. You explained in a simple and didactic way what made me excited again to study. Congratulations on the great videos.
I can see you are a beginer in ansible your playbook look more like roles to me a role will typicaly have one objectif, for exemple setup your ntp client. Or your account on the servers… I even use a role that I named common to settup my NTP client and my DNS server side. Yet you explain ansible in a very simple way ! I think when have a better understanding of ansible you should show us how you made your playnbook evolved 😉
The key is "is it going to be done more than twice? If yes, automate it!"
I've been using Ansible for 4 years now – far superior imho to the likes of puppet and chef.
Using it for spinning up AWS boxes with the aws-cli and CloudFormation or terraform, then doing every repeatable task on 1500+ boxes.
The only challenge is the grouping of the boxes in the inventory file as you can end up with multiple groups.
I love ansible, I have used it for years!!! When you manage about 200 servers it just makes it cake! Also because I like to, I sometimes create adhoc scripts hahaha because why not!
Thank you so much sir. I was actually not sure why I'm not trying to learn this powerful tool.
Oh brother, I have to say. Thank you for working on your sound quality recently. I just subbed to your channel & watched some of your recent videos aaand being a self-proclaimed audiophile I really do appreciate it. Actually, all you do…Wow! every detail that you go into that others leave out. Nice!!! and Thank You!
Hey Tim, I've been using Proxmox for a few years, along with KVM based alternatives prior to, but I've been through a few kernel editions with Debian or Ubuntu. For the "qemu-guest-agent" I've only recently been able to get this working properly in Deb 10, where as 9 and 8 seem to be unresponsive when shutdown is executed via PVE making the alternative ACPI… Have you encountered this issue with early kernels (provided you use Debian)?
hadn't heard about it before and i still don't entirely understand it.
Man, this is super useful
I would always see Ansible be mentioned on job applications, along with other qualifications I know I don't have. Seeing this video gave me a little more confidence in tech I've yet to understand. Thank you for that!
a righteous guide, used it and loved. Finally on my way to automate the Sh*t out of my environment.
tmux… So many great features. Being able to search through command line output is really nice.
xbindkeys is another good one. The apps I use the most are a hotkey away, no matter which distro I'm on.