Skip to content

morristai/ansible-dev-playbook

Repository files navigation

My Dev PC/Mac Setup Ansible Playbook

This playbook installs and configures most of the software I use on my machines for software development and entertainment.

Project Structure

│   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)

Todo

  1. windows

    • mpv config
    • ohmypowh config
    • nvim setup
  2. ansible-lint

How to use

Setup Windows Host

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')

Run Playbook

make play_windows

Running a specific set of tagged tasks

TAGS=choco make play_windows
TAGS="choco,winget" make play_windows

Reference Links

Reference Repos

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published