Getting started with Ansible 06 - Writing our first Playbook

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

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

  • @yichengliu
    @yichengliu 3 ปีที่แล้ว +106

    this guy is amazing, even better than the videos that i pay on udemy

    • @procheeseburger_2
      @procheeseburger_2 3 ปีที่แล้ว +10

      right? they are really well done.. I love that he went over basics like SSH keys prior to doing any Ansible content.

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

      Couldn't agree more. He's an excellent teacher and doesn't gloss over the issues that other instructors just take for granted are already known.

    • @c1sc0m
      @c1sc0m 10 หลายเดือนก่อน

      😝 I totally agree!

    • @whitestarliew
      @whitestarliew 10 หลายเดือนก่อน

      are you buy mumshad's course ?

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

    I've started and stopped with Ansible videos before because they just didn't explain everything I needed to know. I'm so happy I found this series because I am finally getting all the info I need to get it working. I appreciate how you explain everything and make it so easy to understand. Thank you!

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

      I m really glad you found value and thank u for the kind comment

  • @HungNguyen-si2xe
    @HungNguyen-si2xe 3 ปีที่แล้ว +4

    For the amount of videos that I have been watching, none is better than Jay's. Bless you and your family.

  • @fabrice9848
    @fabrice9848 ปีที่แล้ว +11

    I wish there were more youtubers like you... This Ansible series is fantastic!

  • @zhulianstoyanov9198
    @zhulianstoyanov9198 11 หลายเดือนก่อน +4

    the pace of the explanation is awesome. just what I needed. thank you for sharing your knowledge with us.

  • @ToGoMania19
    @ToGoMania19 9 หลายเดือนก่อน +3

    Thanks! I’m enjoying this Ansible series with Git also!

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

    I finally found the time to sit down and set this up on my homelab. Not only does it feel great to have ansible/automation working, but this also has been a great way to truly understand how ssh keys and git work from the command line. Top notch content. Thank you so much for enabling all of us noobs to upskill and do cool stuff!!

  • @kodikodi9948
    @kodikodi9948 2 ปีที่แล้ว +7

    this is a really great series. i never thought i could get this kind of quality instruction on youtube.

  • @bensonwaweru4074
    @bensonwaweru4074 8 หลายเดือนก่อน +4

    You are an amazing tutor. Am now a pro in ansible and git just by watching your tutorial

    • @Crowncity
      @Crowncity 8 หลายเดือนก่อน

      Bro you're not lying at all 💯

  • @walterkelt4475
    @walterkelt4475 3 ปีที่แล้ว +12

    One of the finest technical presentation series I've seen. Well done ! thank you

  • @victormazzocato7783
    @victormazzocato7783 4 หลายเดือนก่อน

    Excelent tutorials. I´m down in the south of Brazil. In Porto Alegre. As I have been trying to self train in network automation, and searching a lot around, I came across this series of videos. Finally the fog is beginning to clear, thanks to the clarity of your tutorials.

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

    I have to say, your videos are perfect! At first I saw other shorter tutorials about ansible on youtube but I had many questions that werent answered there. Then followed your tutorial and I am not even half your course yet but I can say that your course is great. It is as if you know what is in my head becouse you always explain everything I have in mind watching your tutorial. Perfectly organized and it just all makes sense . Great job and thank you for your work!

  • @khalidssattar
    @khalidssattar 4 ปีที่แล้ว +3

    Great introduction to Ansible. The depth and pace you adopt are just right. The section on ssh, git was very useful to have a great start in doing things the right way.

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

    Thanks for the great series. Though I am not new to ansible, one can always learn something from others so I decided to watch them all.
    I know it may sound trivial, but I think it is an important correction, or at least something that should be conveyed.
    You refer to tasks within a play as plays. This may trip folks up if/when they ever test or go to certify on the topic.
    For example:
    ---
    # Simple playbook with two plays
    - name: name of first play
    hosts: all
    tasks:
    - name: name of first task
    - name: name of second task
    - name: name of second play
    - name: name of first task
    - name: name of second task
    In all honesty, most of us simply execute all of our items within a single play but as individual tasks... however I think its fairly important to distinguish the differences between plays and tasks. Another way to look at it is that the first, non-tabbed column are individual plays, everything indented underneath them is part of that play.
    I hope this just came through as a suggestion for completeness and not a nitpick. :) Thanks again for taking the time to film, edit, and share your videos.

  • @jean-philippehenry5805
    @jean-philippehenry5805 4 ปีที่แล้ว +8

    "I won't judge you even if it's emacs", lol, you killed me
    Thank you so much for your work. Know that it helps a lot demystifying Ansible.

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

    Thanks!

  • @HuyNguyen-u1v
    @HuyNguyen-u1v 8 หลายเดือนก่อน +1

    so great content on ansible, easy to understand and follow

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

    A good series, thank you. I look forward to the next episodes.

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

    Jay, great series on Ansible! Just to let you know, I created three identical Ubuntu 20.04 LTS Server VMs in Virtual Box (by creating one and cloning the other two), then changed the hostnames on the 2nd and 3rd VM and set all Servers to static IP addresses before following your video series on running ansible playbooks. I performed all of this by setting up the VMs on my FerenOS Main PC allocating 1GB VRAM to the Servers, then did everything else from my Acer Aspire laptop. I was totally successful in running everything that you did in your videos. Being a retired IT guy myself, I found it extremely rewarding to be able to run multiple command executions on multiple servers simultaneously on a Linux (versus Windows) network. Great job!

  • @devproco8063
    @devproco8063 ปีที่แล้ว

    Just for clarification, @8:40, I am assuming that `ok=2` because there were "two steps" that were performed on the node (including gathering facts) which were successful?

  • @MarkusEicher70
    @MarkusEicher70 2 ปีที่แล้ว +1

    Great stuff, Jay. Thank you. Playbooks are bringing a lot of fun and efficiency into this. That's what I'm here for. Very helpful playlist so far. 🤝

  • @mathewmickle3116
    @mathewmickle3116 10 หลายเดือนก่อน +1

    Thank you soo much for this series and all the other ones you do.

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

    Dear Jay, your illustration of the first playbook was amazing. I loved it. Thank you again !!. Mat.

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

    Thank you for this so much. I use Ansible (and the free AWX GUI) to launch and combine playbooks and combines plays at work. While I’m very comfortable on the operational side, I still need this little boost with understanding the core authoring of playbooks. Really, thank you.

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

    playing your videos in 1.25 speed is perfect

    • @nikikovacs1923
      @nikikovacs1923 9 หลายเดือนก่อน +1

      I just tried that, and my blood pressure instantly went up a notch. Nah, 1.00 is fine.

    • @bashardlaleh2110
      @bashardlaleh2110 9 หลายเดือนก่อน

      @@nikikovacs1923 depends on your English and Tech skills 😉

    • @nikikovacs1923
      @nikikovacs1923 9 หลายเดือนก่อน

      @@bashardlaleh2110 I could probably watch the whole thing in 2.0 (I teach Linux system administration at our local university and I'm a tech writer for the Linux Professional Institute). But do I really want to do that? Nope. Chi va piano va sano. :o)

  • @DaveLinux13
    @DaveLinux13 4 หลายเดือนก่อน

    Good for you! Well done. Thank you very much for your work.

  • @julschamp5330
    @julschamp5330 ปีที่แล้ว

    what a nice tutorial.. starting from the foundation practices.

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

    you are so awesome _ great topic plus easy explanation ever seen

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

    I like how easily you explain the yaml basics, just enough for what we need in this video. Thanks to you I'm getting the hang of git commands and ansible!

  • @ДмитроЖигалкін
    @ДмитроЖигалкін ปีที่แล้ว

    Excellent idea to use apache as example here !

  • @jumaklap
    @jumaklap ปีที่แล้ว

    Amazing series Jay! It's highly recommended! Thanks a lot for share!

  • @osada96
    @osada96 ปีที่แล้ว

    Just another great video from Jay. Thanks a lot!

  • @uripessach
    @uripessach ปีที่แล้ว

    Thanks a lot for this great Ansible course ! much appreciated 🙂

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

    Great content, looking forward to the next video

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

    This playlist is amazing!

  • @gponciano1757
    @gponciano1757 ปีที่แล้ว

    Thanks for this course dude, this is gold content

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

    Going through the series. And have to say ... Love ya work chap.

  • @johnramz
    @johnramz 2 ปีที่แล้ว +1

    Hello Jay @Learn Linux TV . One question, how do I know the exact name of the package I want to install? is there a list I can look up online? I noticed you knew beforehand that it was named "apache2".

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

    Thanks

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

    Thanks Jay

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

    Man, you are seriously amazing. Thank you!

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

    Thanks for sharing such amazing contents, very helpful to learn ansible.

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

    Great. One comment: when you changed the state to absent to uninstall Apache, you should have probably change the name of the task (play) as well to read something like "Uninstall apache2 package"

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

    8:40 ok equals two, what does number two mean ?
    p/s :I understood, number two is the tasks

  • @chillnacho
    @chillnacho 2 ปีที่แล้ว +1

    Someone should make a package called chocobo, just to troll Jay....jk Great video! I'm learning a lot.

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

    legit content - well done and well presented

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

    Your videos are the best on youtube! Thanks for all your efforts - I am learning lots. How about somrthing about password management? I have been usin Lastpass for many years but have become frustrated with it as most passwords seem to be associated with usernames. Any suggestions?

  • @davidtalturejman9185
    @davidtalturejman9185 ปีที่แล้ว

    Youre amazing! Thanks for the good content man

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

    You are amazing Jay " keep going "

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

    You are so awesome. Thanks for the video

  • @tony-2-tired
    @tony-2-tired 2 ปีที่แล้ว

    Great series 👍🏻

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

    I may have misunderstood how Ansible works, but, still..., what's behind the ansible module? In playbooks we can use modules with their respective parameters, but what makes that module execute whatever it says it will execute on an agentless machine? What made the apt module do its job it there is nothing on the targeted machines to interpret that module and do whatever the module is intended to do, in this case to install a package using apt?

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

      The modules are written in Python. So when you call a module, there is a Python script that makes the OS calls, most likely using the os library in Python. So nothing is being installed on the remote machine, it is actually establishing an SSH connection and then running Python commands to do the work.

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

    Sir the writing format you are using in writing the playbook its a bit confusing as the alignments of sentences are having long spaces or hyphens is this standard change when writing long playbooks. I am new to this sort of thing i don't have any developer/coder background

  • @danielpamiesteruel203
    @danielpamiesteruel203 ปีที่แล้ว

    god video, do you do make video for playbook installing a dns service on each server

  • @akashpatel2338
    @akashpatel2338 ปีที่แล้ว

    Awesome! Thanks!

  • @harunaadoga
    @harunaadoga ปีที่แล้ว

    Thank you!

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

    thanks a lot for the tutorial

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

    at 12:30 he says 'let's add another play', but he should have said 'let's add another task'.

  • @BlAdYAdv
    @BlAdYAdv ปีที่แล้ว

    Awesome course . Thank You !

  • @reza.sadriniaa
    @reza.sadriniaa 3 ปีที่แล้ว

    What is the name of the bar at the bottom of tmux?

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

    ESC :q! yourself! vim user! :D Enjoyed the series.

  • @MrSandshadow
    @MrSandshadow ปีที่แล้ว

    how to use ansible in the non interactive way? / how to use become without being asked for password but rather feed it throught var / env-var / stdio ?

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

    Great Job! Thank you so very much

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

    hi sir,
    permission to ask there are tools such as ansible to manage mobile apps?? thanks

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

    i got this error when running the install_apache.yml:
    ERROR! 'task' is not a valid attribute for a Play
    The error appears to have been in '/home/mojo/ansible_test/install_apache.yml': line 3, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.
    The offending line appears to be:
    - hosts: all
    ^ here

    • @matthewmackey7550
      @matthewmackey7550 ปีที่แล้ว

      did you fix this error?

    • @andrewreeves9492
      @andrewreeves9492 ปีที่แล้ว

      that would be the - name, either not alligned correctly to above or no space between the - and name, ansible is super fussy about spacing

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

    the content is pretty good and demos are awesome, kinda giving good competition to the pluralsight lectures...by Wes Higbee.

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

    Awesome

  • @davidtalturejman9185
    @davidtalturejman9185 ปีที่แล้ว

    Awsome! Thank you

  • @streamx2
    @streamx2 3 ปีที่แล้ว +1

    what is the become password

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

    3:06 Did you add `become = True` to `ansible.cfg` like this:
    [privilege_escalation]
    become = True
    Why not add `become_ask_pass = True` there too?

  • @karobarc
    @karobarc ปีที่แล้ว

    Awesome videos for free

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

    I need more assistance learning ansible

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

    why compare nano and vim with emacs ... nano and vim is text editors and emacs is a OS ... how can you compare this ?

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

      Emacs is a text editor as well.

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

      @@JamesGaither11 well using shall commands like echo and sed is better to change text files then Emacs so ... well ... emacs is not design to be good for any thing, it is design to do everything and do a really bad job of it because of this

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

      @@zeocamo emacs is an old style text editor. Some people still prefer it. I am not one of those. I was just highlighting to you that it is a text editor since you said it was an OS.

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

      @@JamesGaither11 yea ok i can see that, notepad is a text editor too .. for someone ...

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

      @@zeocamo yes it is?

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

    What is this become password?

    • @davetweens7687
      @davetweens7687 7 หลายเดือนก่อน

      It is the password to use the sudo command on the remote server

    • @davetweens7687
      @davetweens7687 7 หลายเดือนก่อน

      His user is jay on all of them and he set all passwords to be the same

  • @ademgokce3136
    @ademgokce3136 11 หลายเดือนก่อน

    his knowledge and explanation is great but both beginning and end of the video is too long which is not related content. Hopefully, he will take care this concern for upcoming series...

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

    "even if it's emacs". Suspicious. :-)

  • @IrateGamingZealot
    @IrateGamingZealot 5 หลายเดือนก่อน

    I made the mistake of having cowsay installed while following this tutorial

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

    How dare you sir! Emacs is clearly superior. Sure, I had to have my left hand amputated due to crippling arthritis, but is is a small price to pay for the privilege of using the superior text editor.

  • @MauroJr87
    @MauroJr87 ปีที่แล้ว

    "I won't judge you, even if its emacs" 😂

  • @nikikovacs1923
    @nikikovacs1923 9 หลายเดือนก่อน

    "I won't judge you even if it's Emacs" ==> HA HA HA HA HA HA HA !!!!

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

    The indentation requirements makes my blood boil.

    • @magetaaaaaa
      @magetaaaaaa ปีที่แล้ว

      It does seem really janky. I played around with it at my last job and it seemed like I got constant errors about the config file and lining things up. I have no issue in Python or in other languages with indentation, but for some reason yaml just never felt all that intuitive to me. I'd probably get it if I spent more time with it, but this is the only time I've ever come across that markup language.

  • @wysefavor
    @wysefavor 7 หลายเดือนก่อน

    i will judge you if it is emacs ..lol

  • @khuongvu9648
    @khuongvu9648 23 วันที่ผ่านมา

    Thanks!