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
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 :)
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
Now that I have time I'm watching through these videos. Thank you guys so much!
I love the training format.. Amazing job guys. Keep up tge good work.
I am glad to see that Phil is a System76 user. I am enjoying my Kudu.
It's been great to me so far!
Thank you. I shall start to use ansible from now on.
More Phil too! Would love some tips and tricks for dotfiles/vimrc files that you guys use as well.
Thanks a lot friend! We'll be covering that in the next video! Stay tuned.
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.
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.
Matt Yakel GPG encrypt your address and send it to me. My info should be on keybase or the PGP MIT server.
Thumbs up for: ansible -i inventory fleet -m shell -a "apt install -y -qq vim; apt remove -y emacs"
Very useful video - THANKS!
You gotta remove something! :P
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.
Awesome tutorial . Thanks Tom love the way you teach.
Great video as always.
Ansible is so convenient!
You got a thumbs up from me for the vim comment ... :)
excellent video
a suggestion of topic could be ansible vs puppet vs chef : pro and cons
in this "versus" topic please include "saltstack".
Whaaaat??!! Phil on the Tubes??!!
Yup, first on the Sunday Morning Linux review and now the UA-cams
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? 🤔
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!!
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.
YEah, it looks like 'jobs' are run as a schedule. UI feels horrible though.
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.
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!
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!!
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)
Tom is a good guy, Vim is obviously better.
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.
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.
Look in the ansible docs for the when argument.
Cisco Switch management, config backup and deployment
excellent video! nice stickers:-)
Great . Thanks
So its basically like Salt.. Nice video :D
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!
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.
It still works in 2020
Awesome ok. Been labbing all weekend so may get some time to spin it up! Thanks Tom.
shouldn't you start by configuring it because mine says " No hosts matched, nothing to do"
How much to buy sticker space on the back of your laptops?
+Bizarre Marketing that's a good question I should sell ad space in the back of my laptop
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.
copy PASTA'd! Good vid.
after my positive comment, id say.... those yml files are very confusing, and the specialized vim doesn't help so much.
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.
You have to type your passphrase every time except you use some ssh agent software
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.
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...
@@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.
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
}
Why not puppet I wonder
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.
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.
That sounds like a fantastic thing to talk about in a video Stan!
Stop clearing the damn screen, it’s annoying
Oil_Burner Never. My mom taught me to clean up after myself. :P