I have a few VMs and PMs around the house that I’d setup over time and I’d now like to rebuild some, not to mention just simplify the whole lot.
How the hell do I get from a working system to an equivalent ansible playbook without many (MANY) iterations of trial & error - and potentially destroying the running system??
Ducking around didn’t really show much so I’m either missing a concept / keyword, or, no-one does this.
Pointers?
TIA
the first step is workout what you did, what did you install and where from. Then what config files got edited.
Much like a playbook for a disaster recovery test
Next is using some of the builtin modules like package and copy, make a very noddy playbook that will install stuff and copy up the config. if you have vms, you can use a test vm to see if the playbook works.
If you’ve not played ansible than this might help 👉 https://www.jeffgeerling.com/project/ansible-101-youtube-series
Everything this guy makes is really well made. I had the pleasure of working with him many years ago, and he’s just as kind in person as he seems in his videos.
Lucky you.
Yep, I’d seen some other videos of his, he does seem genuinely interested in passing on his knowledge
Watching him, makes me think I should do videos of stuff I know. But not found the want yet
Yeah, but it’s hard work to make it look easy.
I made a video for work once, it was basically a recorded Teams call, but, good god, I was awful 🤭
Good point, not thought of that - thanks