ansible-desktop
Pre-requisites
- If on Mac, install Homebrew and Ansible
- Install packages for your distro with:
Mac:
# TODO: might not work if having multiple files
ansible-pull -U https://github.com/MarkusSagen/ansible-desktop.git
- Or clone the repo and do the installation manually:
ansible-playbook -i inventory playbooks/homebrew.yml
# To install specific target and tasks
ansible-playbook playbooks/homebrew.yml --limit=my.laptop --tags=packages
Setting up the script
The instructions and inspiration for this is taken from:
- https://opensource.com/article/22/6/install-software-macos-ansible-homebrew
- https://github.com/ruanbekker/ansible-macbook-setup
- Install ansible
# pip install ansible==4.9.0
brew install ansible
- Run this in your terminal
cat << EOF >> inventory
[localhost\]
your-host-name
EOF
- Create a ansible playbook