kriansa / ansible-bundler

Turn Ansible playbooks into executable files
BSD 3-Clause "New" or "Revised" License
162 stars 21 forks source link

support bundle execution on macos #16

Open mhitza opened 1 month ago

mhitza commented 1 month ago

Took some notes from #13 and applied further changes until I got an ansible playbook bundle running in a GitHub actions runner with macos-latest.

Does not include additions such as brew in order to be able to develop this repository on macos. I don't have such a system available to make that work.


Notable code changes that were necessary.

The realpath binary is not installed by default on macos, and I guess it could cause issues where symlinks are involved (or was there another issue which realpath fixed), but I would expect pip to be able to deal with symlinks.

The PIP binary path is different on macos, and set an additional path in regards to that (the macos-latest runner had Python 3.12.7, but the bin path only includes the major.minor versions without the patch level).