This playbook installs and configures most of the software I use on my machines for software development and entertainment.
│ ansible.cfg
│ inventory.ini
│ playbook.yml
│ Makefile
├───preansible (install before ansible)
│ ├───windows / macos / wsl
└───roles
├───windows / macos / wsl
│ │ main.yml (role entry)
│ ├───tasks (tasks file)
│ ├───default (var file)
└───└───files (static/config files)
-
windows
- mpv config
- ohmypowh config
- nvim setup
-
ansible-lint
cd preansible/windows
# Run inside Adminstrator Powershell
./win_setup.ps1
# Run inside WSL
./wsl_setup.sh
# Get the IP address of the desktop / windows host in WSL2
hostip=$(ipconfig.exe | grep 'vEthernet (WSL)' -A4 | cut -d":" -f 2 | tail -n1 | sed -e 's/\s*//g')
make play_windows
TAGS=choco make play_windows
TAGS="choco,winget" make play_windows