runjake 4 days ago

First, using Ansible for setting up a single Mac is way overkill. Jeff's only doing it because he literally wrote the book on Ansible. For a single Mac where you want reproducible, just use shell script(s).

Anyway, for my Ansible environment for servers and network devices, I use uv[1]. It works flawlessly.

If I were doing things even more right, I'd host it in a container, but I don't have time for all that right now.

And nobody's mentioned Homebrew[2], yet.

PS: OS X is now called macOS, and at least in some parts, "OS X" is still used to refer to really old OS releases and may generate some confusion.

1. https://docs.astral.sh/uv/

2. https://brew.sh/

1
yb6677 4 days ago

I also use Ansible to setup Mac and not overkill at all.

On a new Mac, I install Homebrew, install ansible via Brew.

And then run an Ansible script which installs a series of Brew items (ansible has a brew module) along with other stuff not on brew.

daryllxd 2 days ago

> And then run an Ansible script which installs a series of Brew items (ansible has a brew module) along with other stuff not on brew.

Yes, this is what I have right now. I have it set up to install some non-Brew stuff as well (Chrome, Firefox, Whatsapp, etc.). I intend on using this even for my non-tech family's machines, ideally should just be 1 script to install `homebrew`, `pip` (or `uv` like the other fellow said) + Ansible, and then 1 script to install everything else via the brew module.