Just discovered for me. Of course did know about it but never properly checked it out.

Such a nice tool and just great to provision a base image for VPS instances. Especially not having to fiddle with all the edge cases when provisioning with shell scripts.

Still much to learn, I feel I just scratched the surface of it... Well, my setup is rather simple anyways 😅

· · Tusky · 3 · 0 · 3

@dnaka91 I love Ansible too :) For base images I'd also recommending checking out Packer. It's one of my favourite devops tools.

I wrote about Packer a while back. Hope it helps:

@ayushsharma22 thanks, I'm already using Packer.

Using a mix of Terraform and packer for my deployment and used packer with shell scripts so far.

Now had a little chat with a DevOps guy who uses Ansible a lot and after that I finally started trying it out now.

With shell scripts there are just so many things that can go wrong, often failing my provisioning.

@ayushsharma22 nice thing about is that you can easily switch the cloud provider with and try out all the provisioning steps locally.

Sure, it's not 100% the same as the base image is different so you still can expect one or the other thing to fail when running against the cloud provider.
But still it's such a helpful tool to develop the setup all locally first.

@dnaka91 Vagrant is a real life saver. I'm still surprised a lot of people don't use it. You're right about Ansible being better at error handling and retries; bash would require too much boiler plate code to handle that. One thing I like is that once I'm happy with my Ansible setup, I can use it as a provisioner in Packer and get a golden image out of it :)

@dnaka91 I used Ansible a while ago, but stopped using it when I started using Docker for everything. I like the idea of CoreOS where the OS is as thin as possible and everything is containerized.

@dnaka91 glad to see you are enjoying Ansible! During the start of the pandemic last year Jeff Geerlinf put out an excellent series of tutorials for understanding Ansible, Ansible Tower (AWX), Ansible Galaxy, and Molecule (for testing Ansible playbooks and roles). You can watch it for free on YouTube here:

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!