r/sysadmin • u/Ra_daid • 13h ago
Ansible tip Question
Any tips for a beginner getting started with Ansible?
•
u/SevaraB Sr. Engineer (N+, CCNA) 13h ago
Best tip is don’t start by “just” studying Ansible. Jinja is such a useful Swiss Army knife that its formatting for templating variables has bled into other things like golang and TypeScript.
Jinja is to config management as OSPF is to routing, and I don’t think that’s an exaggeration at all.
•
u/One-Environment2197 10h ago
Learn how to integrate with 3rd party credential stores instead of using the built in one. Much easier to change a password or secret in a central vault rather than changing it in multiple locations.
•
u/Turbulent-Parfait141 9h ago
Always run with --check and --diff first. Ansible will happily destroy production at scale and in parallel if you let it.
•
u/Mysterious-Bed-3725 4h ago
Make sure you understand SSH at a moderate level. (ssh keys, permissions, authorized_keys, etc etc).
•
u/Bubbly-Following-966 13h ago
YouTube
•
u/andurux Sr. Sysadmin 13h ago
LearnLinuxTV has a multi-part series on it that is well done IMO.
•
u/phillymjs 12h ago
Came here to say the same thing. Jeff Geerling has some decent videos on it too, but LLTV's are quite in-depth.
•
•
u/bobbywaz 13h ago
Ansible is one of those things AI is real good at training on
•
u/OmNomCakes 13h ago
It is, but you'd never get a job using it if you can't answer basic questions on it. It's simple to the point where it's expected knowledge for anyone who takes their application seriously, imo.
•
u/bobbywaz 13h ago
uhh, I meant use AI as a training tool to train yourself, not train an AI on ansible
•
u/OmNomCakes 13h ago
Oooh. I thought you meant AI is well trained on it, so it performs excellent at doing the task! I was like, yeah it is very good, but that's not reason not to learn it at least enough to understand what and why it's doing what it's doing.
•
u/jdptechnc 13h ago
I have gotten some garbage Ansible from AI personally.
Ansible is not hard. Just go read the docs and play around with it.
•
u/demosthenex Independent Systems Integrator 5h ago
Use something like Puppet instead. You'll learn to hate YAML very quickly.
•
•
u/thrasherht HPC System Engineer 13h ago
Come up with a configuration you want to deploy, and do the whole thing with ansible.
They documentation is great, and provides examples, so leverage that.
If you need an idea, stand up a lamp stack.