Ansible playbook to provision Code Your Future laptops, based on Linux Ubuntu.
- Patch and upgrade the system
- Git
- Chrome and Postman
- Node.JS and npm (install global modules under ~/.npm-global)
- ZSH and Oh my ZSH
- Slack
- Visual Studio Code (with prettier, python and babel extensions)
- PostgreSQL (connect with
sudo -u postgres psql) - MongoDB
- Ansible (install it with
sudo apt-get install ansibleon Linux Ubuntu)
- Edit the file
inventorywhich describes the machines which you want to run this playbook onto. - These machines need be reachable over SSH. You need to have one line per machine in the
inventoryfile with the machine IP, the username and SSH password to connect. These machines need to be reachable from the computer which will execute the Ansible playbook (same network). - Run
ansible-playbook -i inventory playbook.ymlwhich will run the Ansible playbook on each machine described in theinventoryfile.
- If for some reason machines cannot be reached by SSH, we can still run the Ansible playbook on each individual machine.
git clonethis repo on each machine- Edit the file
inventoryand just mentionlocalhost ansible_connection=local - Run
ansible-playbook -i inventory playbook.ymlon each machine.
You can test this playbook on a VM. You will need Vagrant and VirtualBox installed.
Then run vagrant up to bring up the VM and vagrant up --provision to rerun Ansible.