Ubuntu 19.10 devbox setup
Copy hosts.sample
to hosts
:
cp hosts{.sample,}
Edit the file to point to the IP of the virtual machine. Later, when running the playbooks, we will specify what group to use.
All of the playbooks below are run like this:
ansible-playbook <playbook-name>.yml -i hosts
Note: if you're using oslogin with 2FA in Google, there's no way around things but to temporarily disable it on your machine. Set metadata enable-oslogin-2fa
on your machine to FALSE
. You may delete it after running this.
You can run all the playbooks (except Ember at the moment) by using the playbook all.yml
.
This should always be run.
Playbook name: setup
Playbook name: google-chrome-stable
Installs google-chrome-stable for headless tests
Playbook name: node
Playbook name: ember
Playbook name: ruby
. This installs RVM.
Playbook name: docker
Playbook name: auto_shutdown
Shuts down the computer if idle for 30 minutes.
Playbook name: google-cloud-sdk
Install Google Cloud SDK even through Ubuntu already has it. Reason: having a installation not managed by a package manager gives you free stuff, like being able to install kubectl via gcloud components install kubectl
and have it work out-of-the-box.
Playbook name: watchman
watch files and execute events https://facebook.github.io/watchman/