Automate EVERYTHING with Ansible! (Ansible for Beginners)

    20
    37



    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

    Previous articleDocker Tutorial for Beginners – A Full DevOps Course on How to Run Applications in Containers
    Next articleBIT BY A 20 FOOT PYTHON šŸ¤¦ā€ā™‚ļø

    37 COMMENTS

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

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

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

    4. 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 šŸ˜‰

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

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

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