Ansible 101 - Episode 4 - Your first real-world playbook

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 47

  • @tinker_failure278
    @tinker_failure278 3 ปีที่แล้ว +2

    Thanks!

  • @ThomasRStevenson
    @ThomasRStevenson 4 ปีที่แล้ว +39

    Thank you so much for putting this up on youtube. I am getting so much out of this. All of the other YT tutorials on Ansible I watched where very short and skipped over so much detail I was continually lost, but your videos explain everything, and I greatly appreciate that.

    • @JeffGeerling
      @JeffGeerling  4 ปีที่แล้ว +5

      I'm glad I could help! I hope you can continue watching and learning more!

    • @ThomasRStevenson
      @ThomasRStevenson 4 ปีที่แล้ว

      @@JeffGeerling I definitely will!

  • @harikeerthan9397
    @harikeerthan9397 3 ปีที่แล้ว +2

    this is the best ansible tutorial available on youtube. thanks for explaining everything in detail.

  • @JeffGeerling
    @JeffGeerling  4 ปีที่แล้ว +7

    0:02 For reference, I was trying to start the live stream for 10 minutes or so, and TH-cam kept displaying "Live streaming isn't available right now" - I had to restart my browser, OBS, and stop and start the stream in TH-cam's site a couple times, and somehow it started working after all that :)

  • @shwelinhtet6031
    @shwelinhtet6031 11 หลายเดือนก่อน +1

    Thank you for sharing the complete demo and covered all the good stuff. Where i can get to reference those config ,playbook..etc.

  • @ketatgenhorst
    @ketatgenhorst 3 ปีที่แล้ว

    I haven't worked as a Sysadmin role in well over a decade. Back then, I automated many tasks locally with Perl and remotely using expect. Since then, I have just been building boxes to support my work as I go and not thought about scaling. The last three episodes of this made ansible look like a pretty neat tool that might be helpful. This video shows why people talk about it. Wow, this is truly scalable automation.
    I can see a lot of things coming up like testing for the latest and auto populating those variables to be sure that when you use it next year you build the current solr. I am going to go pop some corn and run episode 5!

  • @simoonYT
    @simoonYT 3 ปีที่แล้ว

    Świetny film! Dostał ode mnie aplauz za 10,00 zł 👏

  • @johnjames_cowperthwaite
    @johnjames_cowperthwaite 4 ปีที่แล้ว

    Going slowly through the book and this series Jeff, many many thanks. Keep up the great work!

  • @queenannsrevenge100
    @queenannsrevenge100 4 ปีที่แล้ว +2

    Regarding single and double quotes - the one place I HAVE seen a difference is in the regexp: line in lineinfile and replace modules. I’ve seen the regular expression characters behave differently with double quotes, and as a result I always use single quotes in a regal entry.
    Oh, also the mode: directive in the various modules that set permissions like copy, file, and template. The instructions recommend using single quotes for that.
    I for one would LOVE examples of molecule use. I tried to use it, but I had a VERY hard time doing so; unlike the Ansible project, the molecule documentation is VERY difficult to understand, perhaps because I never see any examples other than via docker...

  • @StormWolf01
    @StormWolf01 4 ปีที่แล้ว

    Thanks for the vids and the free books. It sure is easier to follow with a video, where you discuss things more in details, than with the books, where i spend my time thinking "wait, where do i write what?", or "why does he do that?". For instance, with "ansible for kubernetes", i gave up trying to install solr, as i was completely lost. But thanks to this vid, it's running. Anyway, I'm learning a lot, thanks.

  • @minecraftchest1
    @minecraftchest1 3 ปีที่แล้ว

    I found this series the other day. I have a pi I am reimagining, and I figured it would be a good time to learn Ansible.

  • @laurensdehaan2202
    @laurensdehaan2202 3 ปีที่แล้ว

    And watching the stream with great interest, learning a lot, and looking forward to putting it into practice with a larger farm, from Guyana by way of New York and Oakland, CA. VAGRANT ROCKS! No more PowerEdge 1950 III test server for testing!

  • @Spydaw
    @Spydaw 4 ปีที่แล้ว

    I finally got my playbook working with my docker solution :D
    Thank you again for the awesome video!

  • @JelleSebreghts
    @JelleSebreghts 4 ปีที่แล้ว +1

    42:57 Can you also run it on your local machine? You mentioned earlier you had ansible playbooks to setup your mac. Do you run them from an other machine and ssh into the mac, or how does that work?

    • @JeffGeerling
      @JeffGeerling  4 ปีที่แล้ว +1

      Yes! You can run Ansible playbooks against a local machine using the 'local' connection plugin (add `connection: local` to a play, or add `-c local` on the command line). This bypasses the SSH connection entirely.

    • @JelleSebreghts
      @JelleSebreghts 4 ปีที่แล้ว

      @@JeffGeerling Thank you! I've been going through these episodes, and they're super informative. Thanks for making (or having made) the time to make these!

  • @hermannpaschulke1583
    @hermannpaschulke1583 2 ปีที่แล้ว

    Thank you so much for this series! I've managed my servers for the longest time now. It's time for something better

  • @harshvaragiya8834
    @harshvaragiya8834 3 ปีที่แล้ว

    You're the man ! Awesome content...

  • @louwrentius
    @louwrentius 4 ปีที่แล้ว

    I’ve been using Ansible professionally a ton an I follow this series to check what I missed. The creates option is unfortunately one of them. Saves a ton of registering vars with stat. Thanks.

  • @mohammadmoaviyah1600
    @mohammadmoaviyah1600 2 ปีที่แล้ว

    thanks for this series

  • @Brac10
    @Brac10 4 ปีที่แล้ว

    Jeff, this Episode was perfect

  • @Gilgwathir
    @Gilgwathir 2 ปีที่แล้ว

    34:40 If you specify one specific file, you might still miss all the other stuff. Is that really clever to do that?

  • @ko_kamlesh
    @ko_kamlesh 4 ปีที่แล้ว

    Found you from the reddit while searching ansible-linter for VS code. & watched this video. waiting for live stream today. Amazing. :)

  • @sachinuplaonkar229
    @sachinuplaonkar229 4 ปีที่แล้ว

    Thank you for these videos! They are of great help when starting out in Ansible! Cheers :D

  • @suprchrgd
    @suprchrgd 4 ปีที่แล้ว

    Another great video! Only thing I take issue with (as a Server Admin) is unpacking everything in /tmp .. when the server gets patched and rebooted, all of that goes away and your ansible code will re-download and unpack everythinig again into /tmp. Much better to have an agreed-upon disk, mount, etc, that doesn't go away on a reboot.

    • @JeffGeerling
      @JeffGeerling  4 ปีที่แล้ว +1

      Quite true, and that does technically break idempotence between reboots. The main reason I stick with /tmp as a default (and especially when teaching) is it's the only location I know I can rely on and write to in almost any situation.
      But I should probably mention that using a different directory for 'scratch' files (even /opt, or /var) would be a good idea, especially if you rely on those files for installation.

    • @suprchrgd
      @suprchrgd 4 ปีที่แล้ว

      @@JeffGeerling That's totally fair! Yes, I think mentioning that would be good. Mention tmp is fine for teaching or Dev, or something you don't expect to run over and over (ad-hoc run). Thank you Jeff for all you do!

    • @GrahamAtDesk
      @GrahamAtDesk 3 ปีที่แล้ว

      @@JeffGeerling Hi Jeff. I'm a bit late to this discussion, but I think /var/tmp would work well in these examples. /tmp is sometimes setup as a small RAM disk (e.g. only 100MB) which you could potentially fill with a large download, while /var/tmp should be backed by proper storage. And to Supr Chrgd's indempotence point, /var/tmp shouldn't be cleared on reboot. See the entry for /var/tmp in the FHS: en.m.wikipedia.org/wiki/Filesystem_Hierarchy_Standard.
      And cheers for this video series Jeff, it's superb.

  • @me1ram
    @me1ram 4 ปีที่แล้ว

    Good job! Thanks for lessons

  • @mimalik2
    @mimalik2 4 ปีที่แล้ว

    Love this, very practical and detailed. Found it yesterday, just bought the book, looking fwd to more quality content, keep it up. Any plans on doing same for Ansible for Kubernetes??

    • @JeffGeerling
      @JeffGeerling  4 ปีที่แล้ว

      Yes; just make sure you're subscribed! I am planning on a 'Kubernetes 101' series soon.

  • @pmirji02
    @pmirji02 4 ปีที่แล้ว

    great content, i am liking your videos

  • @TimmyReilly
    @TimmyReilly 4 ปีที่แล้ว +1

    "Ansible Journey" - Gandalf the Grey

  • @minecraftchest1
    @minecraftchest1 3 ปีที่แล้ว

    The bottom 3 lines at the bottom of the editor window gets covered.

  • @diegonayalazo
    @diegonayalazo 2 หลายเดือนก่อน

    Thanks

  • @NamvarYeganeh
    @NamvarYeganeh 4 ปีที่แล้ว

    I have one question about the playbooks,
    Is it better to have all playbooks in one ansible playbook as roles, or make different playbook for each role?

    • @JeffGeerling
      @JeffGeerling  4 ปีที่แล้ว +1

      We'll get to roles in episode 6, I hope; there are a lot of different ways you can manage roles and playbooks for easier maintenance.

  • @georgelza
    @georgelza 3 ปีที่แล้ว +2

    ... it was DNS... was me this past week, tying to build something in AWS. kept on thinking, Security Groups, maybe it is NatGW, no... it's Route Tables... nope, it was DNS...

  • @AllenStJohn
    @AllenStJohn 4 ปีที่แล้ว +1

    difference between ' and " is this: "
    " != '
    '

  • @manazil-5104
    @manazil-5104 2 ปีที่แล้ว

    18:00

  • @gregoryp203
    @gregoryp203 3 ปีที่แล้ว

    he doesn't start talking about the real-world playbook until 14min in

  • @michaelventarola7100
    @michaelventarola7100 4 ปีที่แล้ว

    Molecule Molecule :)

  • @johnhaggin8464
    @johnhaggin8464 4 ปีที่แล้ว

    USA< Illinois, TURKMENISTAN