2 ms·
Ansible is a little heavyweight for what you want, but if you wrap it in a script and only use the built-in modules, it's probably got everything you need. Her
by CGamesPlay 4y ago
Ansible is a little heavyweight for what you want, but if you wrap it in a script and only use the built-in modules, it's probably got everything you need.
Here's the wrapper script:
ansible-playbook -i localhost, --connection=local playbook.yml "$@"
You run the script with "-CD" for dry run mode, and without arguments for production mode. And here's the docs for the available modules [0].
[0] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/index.html#modules https://docs.ansible.com/ansible/latest/collections/ansible/...
- geerlingguy 4y agoThis is how I set up my Mac as well; just a local connection. Sets up out of box Mac in about 15 minutes and I can keep my two Mac's configs in perfect sync: https://github.com/geerlingguy/mac-dev-playbook https://github.com/geerlingguy/mac-dev-playbook