This is a custom ansible playbook. It sets up all the tools for local web development using Node.JS
-
Install WSL2.
-
Install Ubuntu (20.04 LTS recommended)
-
Install Ansible on Ubuntu
sudo apt update sudo apt install software-properties-common sudo add-apt-repository --yes --update ppa:ansible/ansible sudo apt install ansible
-
Clone this repo down or download the zip file.
-
Run the playbook from the directory
ansible-playbook -K playbook.yml
-
Enter your password when prompted.
-
Install ansible
With Homebrew
brew install ansible
or with python3
pip3 install ansible
-
Clone this repo down or download the zip file
-
Run the playbook from the directory
ansible-playbook -K playbook.yml
-
Enter your password when prompted.
This installs the following things:
- zsh (WSL Only)
- acl (WSL Only)
- git (WSL Only)
- postgresql
- pip for python (WSL Only)
- nvm
- Node.JS LTS
- Generates an ssh key, it will be in ~/.ssh/id_ed25519.pub
- Sets VSCODE to be your default editor.
- Configures git username, email and sets
git pullto do a rebase - Sets up an
openandwslalias (WSL Only)
Feel free to fork this and modify it to suit your needs or learn a bit about how to fight with ansible.