More details in this article : https://camillehdl.dev/ansible-lab-with-podman-on-macos/
Gists don't support subdirectories, Replace -
by /
to get the directory hierarchy.
- This was tested on macos 15 with apple silicon.
- Podman Desktop installed on your machine.
- YOU NEED TO ADD A KEY PAIR IN THE lab/Containerfiles/controller/ directory and the public key in lab/Containerfiles/node/
- If, as in my example, you need sshfs, you need macfuse https://osxfuse.github.io
>lab/$ ./scripts/build-images.sh
>lab/$ ./start.sh
Then, assuming your Ansible stuff is in an ansible/
directory next to lab/
:
cd ansible
ansible-galaxy install -r requirements.yml
ansible-playbook -i inventories/lab/hosts.yml playbooks/your-playbook.yml