Setup dev machines using ansible.
pip install ansible
ansible-playbook -i hosts_file dev-setup.yml
Note:
- The root folder of the repository should be the
pwdwhen the command is executed for thedotfilesto be found - The
hosts_fileshould contain a sectiondevlisting all the remote machines to setup (either as IP addresses or as hostnames which could be resolved by either the DNS, or using the~/.ssh/configfile)
- Create a user (default:
musicallyut) on the remote machine and ensure that the user cansudowithout any passwords. - Copy over the ssh key to allow me to log into the remote machine easily.
- Install various packages on the remote machine:
git,vim,tmux,htop, etc. - Copy over all the dotfiles to the remote machine, and setup
z. - Install the
vimplugins usingvim-plug. - Install
powerline-fontson the machine. - Set up
nvmand install Node version 12. - Download
minicondaand extract it.
This leaves the remote machine ready to be used as a development platform for me.