Hacker News new | ask | show | jobs
by thorvaldsson 604 days ago
I use Ansible to setup my servers, and also all my workstations.

The first step is to run a bootstrap script, then run a tailor made playbook for each situation.

Those specific playbooks haven't been made public, but I wrote something[0] last year about how to setup an Android development environment using Ansible, and as part of that shared my bootstrap script.

[0]: https://hth.is/2023/01/02/android-ansible/

1 comments

> The first step is to run a bootstrap script, then run a tailor made playbook for each situation.

Up to you, but just in you weren't aware: ansible has a `raw:` task which enables one to run anything that the `connection:` transport tolerates, which can go a long way toward getting rid of any extraneous shell scripting

Further toward that goal, I found that PyPy is "untar and go" for every distribution that I've cared about, so even getting python on the machine can similarly be bootstrap friendly

Didn't know about that, will need to look into it. Thanks!