Tutorial: Getting Started with Ansible for Linux Server Configuration Management

Поділитися
Вставка
  • Опубліковано 27 жов 2024
  • Amazon Affiliate Store
    ➡️ www.amazon.com...
    Gear we used on Kit (affiliate Links)
    ➡️ kit.co/lawrenc...
    Try ITProTV free of charge and get 30% off!
    ➡️ go.itpro.tv/lts
    Use OfferCode LTSERVICES to get 5% off your order at
    ➡️ lawrence.video...
    Tesla Referral Program Offer
    🚘 www.tesla.com/...
    Lawrence Systems Shirts and Swag
    👕 teespring.com/...
    Digital Ocean Offer Code
    ➡️ m.do.co/c/85de...
    HostiFi UniFi Cloud Hosting Service
    ➡️ hostifi.net/?v...
    Protect you privacy with a VPN from Private Internet Access
    ➡️ www.privateint...
    Google Fi Service Referral Code
    📱g.co/fi/r/TA02XR
    More Of Our Affiliates that help us out and can get you discounts!
    ➡️ www.lawrencesy...
    Twitter
    🐦 / tomlawrencetech
    Patreon
    🔗 / lawrencesystems
    Our Forums
    🔗 forums.lawrenc...
    GitHub
    🔗 github.com/law...
    Discord
    🔗 / discord
    Our Web Site
    🔗 www.lawrencesy...
    PIA Internet Access Affiliates Link
    www.privateint...
    Tutorial: Getting Started with Ansible for Linux Server Configuration Management
    github.com/pgp...
    Our Web Site
    www.lawrencesy...
    Our Forums
    forums.lawrenc...
    Patreon
    / lawrencesystems
    Twitter
    / tomlawrencetech
    Affiliate Link for Tube Buddy
    www.tubebuddy....
    On LinkedIn
    / lawrencesystems

КОМЕНТАРІ • 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!

  • @balluchegu5153
    @balluchegu5153 5 років тому +2

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

  • @rogerjenson5689
    @rogerjenson5689 6 років тому +1

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

  • @davidg4512
    @davidg4512 6 років тому +1

    Thank you. I shall start to use ansible from now 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.

  • @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.

  • @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.

  • @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!

  • @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.

  • @ahsan-li7sh
    @ahsan-li7sh 6 років тому

    Awesome tutorial . Thanks Tom love the way you teach.

  • @zouhairy
    @zouhairy 6 років тому +1

    Great video as always.

  • @LDdrums20
    @LDdrums20 6 років тому +4

    Ansible is so convenient!

  • @jerrybailie
    @jerrybailie 6 років тому +3

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

  • @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".

  • @lightninguru26
    @lightninguru26 6 років тому +2

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

    • @LAWRENCESYSTEMS
      @LAWRENCESYSTEMS  6 років тому +2

      Yup, first on the Sunday Morning Linux review and now the UA-cams

  • @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? 🤔

  • @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 ua-cam.com/video/ToXoDdUOzj8/v-deo.html
      That's neat!!

  • @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)

  • @heistking
    @heistking 6 років тому +2

    Tom is a good guy, Vim is obviously better.

  • @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

  • @hiredevops1621
    @hiredevops1621 5 років тому

    excellent video! nice stickers:-)

  • @aliakbarhemmati31
    @aliakbarhemmati31 5 років тому

    Great . Thanks

  • @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!

  • @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.

  • @mathesonstep
    @mathesonstep 6 років тому

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

  • @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 UA-cam in one of your other videos. That would be one that is fairly obvious but not overly intrusive.

  • @lilbit-fc5le
    @lilbit-fc5le 6 років тому

    copy PASTA'd! Good vid.

  • @MirkWoot
    @MirkWoot 5 років тому

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

  • @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.

  • @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.

  • @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