top | item 30502417

Ask HN: Curious about Ansible but afraid or blocked on getting started?

4 points| MaknMoreGtnLess | 4 years ago

Are you curious about Ansible [0] for your CM, IaC needs but afraid or blocked on getting started?

1. What are some of the blockers 2. What will (significantly) improve for you if you became proficient in Ansible? 3. Are there some things that you just can't do right not but would be easuer if you became proficient in Ansible?

[0] https://en.wikipedia.org/wiki/Ansible_(software)

9 comments

order

shoo|4 years ago

At the $dayjob I don't see anyone use ansible or comparable tools (chef, puppet, ...) any more. It's all managed cloud services and containers. Much of the job that ansible or other config management tools might have done is handled by docker build to bake container images, and k8s to manage custom running services. Terraform however gets widely used to wrangle state.

MaknMoreGtnLess|4 years ago

> Much of the job that ansible or other config management tools might have done is handled by docker build to bake container images, and k8s to manage custom running services

OK but there has to be something that executes the docker build and then kicks the jobs off - right?

What's that tool at the $dayjob?

emiliobool|4 years ago

I am afraid of getting started, I have read playbooks before and they look understandable but the idea of setting up the tools scares me. I’m starting to think this is PTSD from how hard installing anything was back then and now trying anything new is hard even if the entry level for everything has been lowered significantly.

shoo|4 years ago

Ansible has a very low barrier to entry in terms of dependencies that need to be installed into the machines you want to manage: they need to have python 2.6+ or python 3.5+, and you need to be able to connect to the machines over ssh.

One way to get started could be to initially ignore ansible playbooks, just install ansible onto your control machine. Write an inventory file with one or more hostnames of machines you want to manage. See if you can get ansible to connect with ssh and "ping" all the machines. Once you're comfortable with executing one-off commands through ansible, the jump to ansible-playbook will be smaller.

MaknMoreGtnLess|4 years ago

I want to learn from you more.

What if I gave you 2 docker containers:

1. one with ansible loaded and ready to go

2. another one with just SSH running that you can point the above to and experiment with

If you don't know docker - that's ok! It's easy and I will set you up to do that. let me know

This way, you don't have to mess around with either installing ansible or setting up VMsVPS/hosts blah blah