Automate EVERYTHING with Ansible! (Ansible for Beginners)

37 Comments



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!
https://l.technotim.live/quick-start

★ 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 ⚙
► https://l.technotim.live/gear

(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.
License: https://l.technotim.live/sb-music-license

Thank you for watching!

source

37 Comments
    • blank
      Techno Tim
      May 16, 2022 01:37 am Reply

      What will you automate with Ansible? Updates? Reboots? Software installs? Something else?

    • blank
      Mathieu Leclerc
      May 16, 2022 01:37 am Reply

      Its so satisfying to see all my VMs updated all at once

    • blank
      Robert Melcher
      May 16, 2022 01:37 am Reply

      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!

    • blank
      Michael Mallozzi
      May 16, 2022 01:37 am Reply

      I did get to the docs with the link you sent thanks for the reply.

    • blank
      Michael Mallozzi
      May 16, 2022 01:37 am Reply

      Tim your videos are great, but the documentation link is broken so I can't get all the commands you are typing

    • blank
      Daniel Towalski
      May 16, 2022 01:37 am Reply

      One of the most underrated channels in all of YT.

    • blank
      arraselu
      May 16, 2022 01:37 am Reply

      How you will do if each node have a different root password?

    • blank
      Matt Perry
      May 16, 2022 01:37 am Reply

      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!

    • blank
      Sebek _
      May 16, 2022 01:37 am Reply

      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!

    • blank
      Aidan Millar-Powell
      May 16, 2022 01:37 am Reply

      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.

    • blank
      Rux_
      May 16, 2022 01:37 am Reply

      Not using ansible yet, but eventually. I want to learn it for work, to automate tasks at work.

    • blank
      Redd Floyd
      May 16, 2022 01:37 am Reply

      ENGAGEMENT

    • blank
      Rob Martin
      May 16, 2022 01:37 am Reply

      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.

    • blank
      Tek Tech
      May 16, 2022 01:37 am Reply

      Awesome, Thanks again TechnoTim. I really enjoy dabbling with all this.

    • blank
      John Gill
      May 16, 2022 01:37 am Reply

      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!!!

    • blank
      Khalid El-Gazzar
      May 16, 2022 01:37 am Reply

      Thanks 👍😊 simple & to the point

    • blank
      Erik Nayan
      May 16, 2022 01:37 am Reply

      Great video! The best one I found about Ansible. Thanks man!

    • blank
      Tech Sudo
      May 16, 2022 01:37 am Reply

      Very clear and concise thank you!!

    • blank
      John Crunk
      May 16, 2022 01:37 am Reply

      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.

    • blank
      YikesBigMAD
      May 16, 2022 01:37 am Reply

      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!

    • blank
      bitsized tech
      May 16, 2022 01:37 am Reply

      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.

    • blank
      AdmV0rl0n
      May 16, 2022 01:37 am Reply

      Hi Tim,

      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..

    • blank
      Joe
      May 16, 2022 01:37 am Reply

      Cool story bro. I learned a few things

    • blank
      -KP-
      May 16, 2022 01:37 am Reply

      6 month later, i learning about this XD
      cool af..

    • blank
      Jefferson E. Pessoa
      May 16, 2022 01:37 am Reply

      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.

    • blank
      BladR Brett’el
      May 16, 2022 01:37 am Reply

      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 😉

    • blank
      Anthony Firmin
      May 16, 2022 01:37 am Reply

      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.

    • blank
      Orson C. Badger
      May 16, 2022 01:37 am Reply

      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!

    • blank
      Mariem Buenaventura
      May 16, 2022 01:37 am Reply

      Thank you so much sir. I was actually not sure why I'm not trying to learn this powerful tool.

    • blank
      Joe P
      May 16, 2022 01:37 am Reply

      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!

    • blank
      Kyle Curry
      May 16, 2022 01:37 am Reply

      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)?

    • blank
      morthim
      May 16, 2022 01:37 am Reply

      hadn't heard about it before and i still don't entirely understand it.

    • blank
      Gorkem Yildirim
      May 16, 2022 01:37 am Reply

      Man, this is super useful

    • blank
      Nacoly
      May 16, 2022 01:37 am Reply

      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!

    • blank
      Anders Johansson
      May 16, 2022 01:37 am Reply

      a righteous guide, used it and loved. Finally on my way to automate the Sh*t out of my environment.

    • blank
      Matt Ice
      May 16, 2022 01:37 am Reply

      tmux… So many great features. Being able to search through command line output is really nice.

    • blank
      Matt Ice
      May 16, 2022 01:37 am Reply

      xbindkeys is another good one. The apps I use the most are a hotkey away, no matter which distro I'm on.

Leave us a comment