Skip to content

Linux/Mac/Windows (WSL) setup and configuration via Ansible for the Sys/Dev Ops tools!

License

Notifications You must be signed in to change notification settings

hugoprudente/box-dev-playbook

Repository files navigation

Sys / Dev / Ops Development Ansible Playbook

CI

This playbook installs and configures most of the software I use on my workstations for development, sysadmin, SRE, DevOps and Fun!

Totally inspired by mac-dev-playbook by Geerlingguy!

Installation

OSX Only

  1. Install the Apple's command line tools
xcode-select --install

Window (WSL) only

Due to WSL mount the /home/user as /mnt/c you will face world writable directory issue, to fix it just export the ANSIBLE_CONFIG environment variable.

export ANSIBLE_CONFIG=`pwd`/ansible.cfg
  1. Continue with the steps for Linux and Windows (WSL)

Linux & Windows (WSL)

  1. Install Ansible. (This is prepared to work with ansible-base/core)

Or run the script below to install a venv with the latest python3 available in your system and install ansible-2.12.10

bash scripts/bootstra.sh env

# or

ANSIBLE_VERSION=2.12.10 bash scripts/bootstrap.sh env
  1. Clone this repository to your local drive.
git clone https://github.com/hugoprudente/box-dev-playbook.git
  1. Install the ansible-galaxy dependencies
ansible-galaxy install -r requirements.yml --force-with-deps
  1. Run the the setup playbook. Enter your account password when prompted.
ansible-playbook main.yml -i inventory --ask-become-pass

Note: If some Homebrew commands fail, you might need to agree to Xcode's license or fix some other Brew issue. Run brew doctor to see if this is the case.

Running a specific set of tagged tasks

You can filter which part of the provisioning process to run by specifying a set of tags using ansible-playbook's --tags flag. The tags available are dotfiles, homebrew.

ansible-playbook main.yml -i inventory -K --tags "dotfiles,homebrew"

Overriding Defaults

Not everyone's development environment and preferred software configuration is the same.

So you can customize your one using as base default.config.yml by creating a config.yml file and changing to your taste!

Included Applications / Configuration (Default)

.

Testing the Playbook

Use the Mac OS X VirtualBox VM

Additionally, this project is continuously tested on GitHub Actions' macOS infrastructure.

Troubleshoot

GPG Signed commits

If you are using WSL you will need to export this, to type the passphrase of your commit or it will fail with error: gpg failed to sign the data. fatal: failed to write commit object\

export GPG_TTY=$(tty)

Author

Hugo Prudente

Releases

No releases published

Packages

No packages published