Ansible 101 – Episode 1 – Introduction to Ansible

40 Comments



Jeff Geerling (geerlingguy) introduces Ansible in the first episode of a new live-streaming series “Ansible 101 with Jeff Geerling.”

Jeff walks through installing Ansible, running tasks on a remote AWS EC2 instance using Ansible ad-hoc tasks, integrating Ansible with Vagrant to build local Virtual Machines (VMs), and then teaches you how to write your first Ansible playbook!

This video follows material from chapters 1 and 2 in the bestselling Ansible book, Ansible for DevOps.

Buy Ansible for DevOps: https://www.ansiblefordevops.com
Sponsor Jeff on GitHub: https://github.com/sponsors/geerlingguy
Support Jeff on Patreon: https://www.patreon.com/geerlingguy

Contents:

00:00:00 – Intro
00:01:47 – Preface and Info about Ansible for DevOps
00:07:51 – Ansible Background
00:17:43 – Installing Ansible
00:20:55 – Connecting to a Server with Ansible
00:26:50 – Using an ansible.cfg file
00:28:57 – Running ad-hoc commands
00:33:36 – Vagrant Intro
00:45:24 – First Ansible Playbook
00:51:47 – Idempotence
00:56:56 – Importance of naming tasks
01:01:18 – Chat questions answered
01:02:56 – Outtro

source

40 Comments
    • blank
      Jeff Geerling
      May 09, 2022 08:21 am Reply

      0:29 – less than a minute in, already touching the face. Stay safe folks, wash your hands!

    • blank
      Conall
      May 09, 2022 08:21 am Reply

      looking forward to watching this series. Thanks for the effort , Jeff.

    • blank
      Rebel Yell
      May 09, 2022 08:21 am Reply

      Hey Jeff, I'm Catholic too, and I loved it " I'm going to pray for you, either you like it or not"hahahahahaha made my day!

    • blank
      François Yengue
      May 09, 2022 08:21 am Reply

      Just got the channel you rock Jeff thank you, subbed!!!

    • blank
      Two Good
      May 09, 2022 08:21 am Reply

      New student just over two years late. Thanks so much! Unfortunately a decade was optimistic

    • blank
      HC LW
      May 09, 2022 08:21 am Reply

      Thanks Jeff!

    • blank
      MaxHax42
      May 09, 2022 08:21 am Reply

      Looking at this in 2022 from a newb perspective : Everything I find around Vagrant seems a little bit old. Like for example, I wanted it to integrate with my proxmox VE cluster, and the (community) provider for proxmox doesnt seem to work with todays Vagrant versions – and doesnt seem to be maintained. Same goes for the Azure provider (might still work – but no longer maintained)
      Currently I dont really see much added value compared to a docker container – it seems a bit equivalent. Except for the 'provisioning' options and shared folder. Right? Or am I missing the point?

    • blank
      curmudgeonIII
      May 09, 2022 08:21 am Reply

      Jeff, having problem trying to print contents of your 'ansible-for-devops.pdf using Abobe Acrobat DC. Bought both ansible-dev-ops & ansible for kuberntes and can not print contents with either. Might want to look into this issue(s).

    • blank
      Gilgwath
      May 09, 2022 08:21 am Reply

      Thank you for the great tutorial 🙂 I only watched this first one, and I can already tell this will be a good series.

    • blank
      Duckworks
      May 09, 2022 08:21 am Reply

      Checking in on March 6, 2022 to say that "The craziest timeline of your life" has managed to get crazier. Fun further note for anyone watching a decade into the future.

    • blank
      Windows Player
      May 09, 2022 08:21 am Reply

      34:50 – Aged like milk

    • blank
      andreja jovanovski
      May 09, 2022 08:21 am Reply

      Hi, CentOS is EOL and you need to update Vagrant conf and changed in the book.Thanks

    • blank
      BotSlayman
      May 09, 2022 08:21 am Reply

      of all the things that changed in those 2 short years who would have thought it'd be the death of CentOS. That's sort of wild.

    • blank
      AZİZ AYYILDIZ
      May 09, 2022 08:21 am Reply

      Thank you for this series

    • blank
      HermannPaschulke
      May 09, 2022 08:21 am Reply

      The part at 34:45 hit really hard 🙁

    • blank
      rawswede
      May 09, 2022 08:21 am Reply

      why do all developers run mac, what is so special with it?

    • blank
      Diaa Kasem
      May 09, 2022 08:21 am Reply

      Jeff You are amazing

    • blank
      Tony Ma
      May 09, 2022 08:21 am Reply

      does virtualbox work for M1 Macs? Can I use UTM instead?

    • blank
      W Hornby
      May 09, 2022 08:21 am Reply

      "Cent OS should be supported for years" /s. Excellent video!

    • blank
      m venkatesh
      May 09, 2022 08:21 am Reply

      Subscribed.

    • blank
      m venkatesh
      May 09, 2022 08:21 am Reply

      Good video thanks a lot 👍

    • blank
      luke B
      May 09, 2022 08:21 am Reply

      Great stuff Jeff!
      to be honest i thought you was just the crazy pi guy, now im learning ansible with you🤯😂
      Thank you👌😁

    • blank
      Eivind Amundsen
      May 09, 2022 08:21 am Reply

      Great stream! Thanks! That very last comment in your video didn't age well, though… 🙁

    • blank
      Hans Carlsson
      May 09, 2022 08:21 am Reply

      Ugg… as soon as I saw that Ansible uses Yaml, that disqualified it for me. If there is something I hate more than JSON it's Yaml.

    • blank
      s.q
      May 09, 2022 08:21 am Reply

      40:00 Cent OS is no longer supported by red heat as of 2022

    • blank
      s.q
      May 09, 2022 08:21 am Reply

      2022 and the corona still going on smh

    • blank
      machiano momano
      May 09, 2022 08:21 am Reply

      you are the best man

    • blank
      Ali Hussein
      May 09, 2022 08:21 am Reply

      Thank you for the perfect explanation for every think.

    • blank
      Jim Losinsky
      May 09, 2022 08:21 am Reply

      Fantastic Ansible Tutorial 🙏😀❤️🎄🎄🎄

    • blank
      dean woodward
      May 09, 2022 08:21 am Reply

      More than a year and a half later, still pandemic. Going to be a while, I'm guessing.

    • blank
      noferblatz
      May 09, 2022 08:21 am Reply

      Correction on your definition of "ansible". Ursula K. LeGuin created this word/concept in a sci fi book she wrote decades ago (I forget which one). It was such a great concept that it's been copied by others, including in "Ender's Game".

    • blank
      Minecraft Chest1
      May 09, 2022 08:21 am Reply

      YAML? Eww.

    • blank
      Minecraft Chest1
      May 09, 2022 08:21 am Reply

      Mentioned Enders Game and I was hooked.

    • blank
      Anthony Russano
      May 09, 2022 08:21 am Reply

      Thank you Jeff!

    • blank
      George Leonard
      May 09, 2022 08:21 am Reply

      question, you ansible.cfg, inventory and playbook.yml, in which directory do you store it, all inside your vagrant directory, as you reference it in your Vagrant file, or can you potentially more complete path specify things, with environment variables

    • blank
      MrGoatflakes
      May 09, 2022 08:21 am Reply

      In Unix type operating systems you should never use a password on the command line as ps can see it. For every user. Stick it in a file or have it prompt you.

    • blank
      George Leonard
      May 09, 2022 08:21 am Reply

      Jeff, downloaded your most recent Vagrant Centos8 (also tried the debian9 and Ubuntu 20.04 ) box, trying to deploy it on the most recent VBox.. and running into not compatible problem…

    • blank
      Lazy Programmer.
      May 09, 2022 08:21 am Reply

      Thanks a lot for the amazing content you put on Youtube for free.

    • blank
      Andres Montoya
      May 09, 2022 08:21 am Reply

      "I'm not a Python developer"

      Makes his tool in Python anyway. Elaborates profusely.

      What a Chad.

    • blank
      Jeremy S
      May 09, 2022 08:21 am Reply

      repping this series at AnsibleFest 2021 for you Jeff! People have already seen it or will be watching soon!

Leave us a comment