Tutorial: Getting Started with Ansible for Linux Server Configuration Management

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024
  • ХоббиХобби

Комментарии • 65

  • @TsunboRecords
    @TsunboRecords 6 лет назад +2

    Thanks for this new series! I was just wondering over the week end if you would ever do a serie on Ansible. And here we are :)

  • @omo-ogun2517
    @omo-ogun2517 5 лет назад

    I enjoy you guys training. I'm able to understand the breakdown of ansible even though it's a short video. I like how the guy on the left is also new to ansible tool, it give that easy to learn feel of ansible

  • @TheMemcon
    @TheMemcon 6 лет назад

    Now that I have time I'm watching through these videos. Thank you guys so much!

  • @rogerjenson5689
    @rogerjenson5689 6 лет назад +1

    I am glad to see that Phil is a System76 user. I am enjoying my Kudu.

  • @balluchegu5153
    @balluchegu5153 5 лет назад +2

    I love the training format.. Amazing job guys. Keep up tge good work.

  • @davidg4512
    @davidg4512 6 лет назад +1

    Thank you. I shall start to use ansible from now on.

  • @JayChristopherson
    @JayChristopherson 6 лет назад +2

    Thumbs up for: ansible -i inventory fleet -m shell -a "apt install -y -qq vim; apt remove -y emacs"
    Very useful video - THANKS!

  • @MirkWoot
    @MirkWoot 5 лет назад +1

    I was about to go crazy and make a rant comment... until..... I learned that I did the wrong commands!. Or, and, some things i didn't think about. Can't be changed now, but it would had been nice to know that no ansible or other would be needed on the other machines :).
    This is so cool, I didn't really think id learn ansible.. also I had no idea I could simply get it thru my package manager... I always thought of it as a Redhat delux product id not easily get my hands on.

  • @tylerharberts
    @tylerharberts 6 лет назад +1

    More Phil too! Would love some tips and tricks for dotfiles/vimrc files that you guys use as well.

    • @philporada5655
      @philporada5655 6 лет назад

      Thanks a lot friend! We'll be covering that in the next video! Stay tuned.

  • @geogmz8277
    @geogmz8277 3 года назад

    So I got exposure to Ansible for the first time through this video 3 years ago. And now this dude sounds to me like a total noob.. Meaning I've learned so much since that this is just too basic for me. So I want to thank you! For getting me started with Ansible ✌🏻I had ZERO knowledge about it when I watched this.

  • @MatthewYakel
    @MatthewYakel 6 лет назад +2

    Awesome thanks so much for this. I would love to see how to integrate ansible playbooks from GitHub. And more of what Phil does!! I want a Let’s Encrypt sticker.

    • @philporada5655
      @philporada5655 6 лет назад

      Matt Yakel GPG encrypt your address and send it to me. My info should be on keybase or the PGP MIT server.

  • @TheOnlyEpsilonAlpha
    @TheOnlyEpsilonAlpha Год назад

    25:15 That uptime thing you put in there, is kinda counter-intuitive: What if I put in the uptime command to get… well, the uptime of the system? To see if it’s rebooted as planned? 🤔

  • @ahsan-li7sh
    @ahsan-li7sh 6 лет назад

    Awesome tutorial . Thanks Tom love the way you teach.

  • @jerrybailie
    @jerrybailie 6 лет назад +3

    You got a thumbs up from me for the vim comment ... :)

  • @lightninguru26
    @lightninguru26 6 лет назад +2

    Whaaaat??!! Phil on the Tubes??!!

    • @LAWRENCESYSTEMS
      @LAWRENCESYSTEMS  6 лет назад +2

      Yup, first on the Sunday Morning Linux review and now the RUclipss

  • @LDdrums20
    @LDdrums20 6 лет назад +4

    Ansible is so convenient!

  • @davidstievenard6313
    @davidstievenard6313 6 лет назад +8

    excellent video
    a suggestion of topic could be ansible vs puppet vs chef : pro and cons

    • @anuragbisht1200
      @anuragbisht1200 6 лет назад +3

      in this "versus" topic please include "saltstack".

  • @zouhairy
    @zouhairy 6 лет назад +1

    Great video as always.

  • @fbifido2
    @fbifido2 4 года назад +1

    How-to video plans to try/teach:
    1. List all servers & application in your business
    {lets say your xcp-ng lab server is your business datacenter/server-rack}
    {now create all the servers & workstation with apps & config you run in your business inside this datacenter using :
    www.ansible.com/
    packager.io/
    puppet.com/
    www.chef.io/
    in an automated way, plus keep them up2date}
    2. show how you create playbooks for each applications, servers, workstations and configuration
    from firewall to freenas to invoice to wiki, etc...
    3. (this list most likely will not have windows desktop or servers, this is tom we're talking about)
    so do a simple RDS-SV testlab guide docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh831610(v=ws.11)

  • @philipcook7608
    @philipcook7608 6 лет назад +2

    I would like to know how to use this in a mixed Linux environment to update the machines, and do anything else useful. Currently I have Debian, Ubuntu, and CentOS.

    • @philporada5655
      @philporada5655 6 лет назад

      Philip Cook that's coming up in the next video. You can see examples in my Ansible roles on GitHub if you'd like to jump the gun.

    • @heistking
      @heistking 6 лет назад +1

      Look in the ansible docs for the when argument.

  • @TechchnologyGuru
    @TechchnologyGuru 6 лет назад +2

    Cisco Switch management, config backup and deployment

  • @heistking
    @heistking 6 лет назад +2

    Tom is a good guy, Vim is obviously better.

  • @bsodmike
    @bsodmike 6 лет назад +2

    Brilliant!! Not seen this yet, but if you haven't do cover Ansible Tower. The UI (to me) is terrible but I guess I just need to put some cycles learning it. Vanilla Ansible/playbooks - very easy to pick up though.
    Thanks Tom!!

    • @darksidetaino2428
      @darksidetaino2428 6 лет назад +1

      the problem with awx/tower that most folks when they started with ansible core is that the process and terms are different. The flow its different.

    • @bsodmike
      @bsodmike 6 лет назад

      YEah, it looks like 'jobs' are run as a schedule. UI feels horrible though.

    • @stanchan
      @stanchan 6 лет назад

      The great thing with awx/tower is that its pretty much how you would run Ansible on the command line in a UI. The problem with that is the UI feels like how you would run Ansible on the command line! Not really intuitive.

    • @darksidetaino2428
      @darksidetaino2428 6 лет назад

      the thing about awx/tower is that is a UI that ties a bunch of things together that if you use ansible core you have to glue it yourself. Also if you got ideas on how to improve it or make it more intuitive you can go to the github page or irc and talk about it!

    • @bsodmike
      @bsodmike 6 лет назад +1

      Thanks all - I've had a play with it in my XenServer and it is making "sense" now. You have "templates" that tie to a playbook and schedule/run jobs off that.
      Inventory management is quite nice too and hosts can be grouped as needed.
      I found this to be a useful primer ruclips.net/video/ToXoDdUOzj8/видео.html
      That's neat!!

  • @kristopherleslie8343
    @kristopherleslie8343 4 года назад

    Tom whats the chance you guys will do a 2020 version of this cause i'm playing with a few new servers and have coffeeeeeeeeeeee.

    • @LAWRENCESYSTEMS
      @LAWRENCESYSTEMS  4 года назад +1

      It still works in 2020

    • @kristopherleslie8343
      @kristopherleslie8343 4 года назад

      Awesome ok. Been labbing all weekend so may get some time to spin it up! Thanks Tom.

  • @RJ-tu3pg
    @RJ-tu3pg 6 лет назад +2

    So its basically like Salt.. Nice video :D

    • @philporada5655
      @philporada5655 6 лет назад

      Mr. Meekses Sort of. Traditional Salt communicates over an encrypted ZeroMQ channel and the master publishes events that the minions listen for to run their configurations. Salt-SSH is more like Ansible.
      They're both Python projects and use yaml though! Thanks!

  • @hiredevops1621
    @hiredevops1621 5 лет назад

    excellent video! nice stickers:-)

  • @aliakbarhemmati31
    @aliakbarhemmati31 5 лет назад

    Great . Thanks

  • @BizarreMarketing
    @BizarreMarketing 6 лет назад

    How much to buy sticker space on the back of your laptops?

    • @LAWRENCESYSTEMS
      @LAWRENCESYSTEMS  6 лет назад +3

      +Bizarre Marketing that's a good question I should sell ad space in the back of my laptop

    • @philipcook7608
      @philipcook7608 6 лет назад

      You were talking about secondary revenue sources of RUclips in one of your other videos. That would be one that is fairly obvious but not overly intrusive.

  • @mathesonstep
    @mathesonstep 6 лет назад

    shouldn't you start by configuring it because mine says " No hosts matched, nothing to do"

  • @lilbit-fc5le
    @lilbit-fc5le 6 лет назад

    copy PASTA'd! Good vid.

  • @kampfighterjet8662
    @kampfighterjet8662 6 лет назад

    You have to type your passphrase every time except you use some ssh agent software

    • @philporada5655
      @philporada5655 6 лет назад

      This is because we didn't put ssh keys on the target VMs and instead chose to just do password based auth. When using ansible with ssh keys, I prefer to not use passwords.

    • @kampfighterjet8662
      @kampfighterjet8662 6 лет назад

      Every "access" to an ssh-keypair requires your passphrase, for sure you can create an keypair without one, which makes no sense from my point of view.
      An ssh-agent can avoid using your passphrase for the "current session" if you use one...

    • @JivanPal
      @JivanPal 3 года назад

      @@kampfighterjet8662, your agent can also consult a local keyring that is only unlocked when you are logged in to your local machine. With OpenSSH, it's as simple as adding `UseKeychain yes` to your config on most systems.

  • @gspiceland
    @gspiceland 2 года назад

    Really should not do a demo and a few minutes in go "Don't do this the way we did it" in regards to SSH keys. Otherwise, great format and good info.

  • @MirkWoot
    @MirkWoot 5 лет назад

    after my positive comment, id say.... those yml files are very confusing, and the specialized vim doesn't help so much.

  • @ashishrajput97
    @ashishrajput97 6 лет назад

    Any idea about this error.
    10.0.3.112 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.0.3.112 port 22: No route to host
    ",
    "unreachable": true
    }

  • @thingyee1118
    @thingyee1118 6 лет назад

    Why not puppet I wonder

    • @philporada5655
      @philporada5655 6 лет назад

      Puppet was the first "true" CM system I learned after scripting. I didn't grok CM until Saltstack and didn't truly get comfortable with systems automation until I found Ansible.

    • @stanchan
      @stanchan 6 лет назад

      I've been doing Puppet, Chef, Saltstack and Ansible for 12 years now (in that order) and Ansible is probably the easiest for a beginner to learn and get productive on.

    • @philporada5655
      @philporada5655 6 лет назад

      That sounds like a fantastic thing to talk about in a video Stan!

  • @RingZero
    @RingZero 6 лет назад +1

    Stop clearing the damn screen, it’s annoying

    • @philporada5655
      @philporada5655 6 лет назад +2

      Oil_Burner Never. My mom taught me to clean up after myself. :P