Ansible playbooks for a multi-purpose personal server.
Use a single DigitalOcean Ubuntu LTS droplet as a host. Include a public SSH key stored with DigitalOcean when creating the droplet. Enable droplet backups.
As primarily a .NET developer, I use a Windows development environment.
Windows is not supported for the control node. Ansible Docs
So, to get up and running, I am using WSL.
Follow the official docs for getting WSL up and running. Use the latest Ubuntu LTS image.
via Ansible Docs
cp /path/to/id_rsa.pub ~/.ssh/id_rsa.pubcp /path/to/id_rsa ~/.ssh/id_rsachmod 700 ~/.sshchmod 644 ~/.ssh/id_rsa.pubchmod 600 ~/.ssh/id_rsa
Clone this cbhost-ansible repo into a directory inside of the WSL instance.
Add the IP of the managed node droplet to /etc/ansible/hosts inside WSL.
ansible all -m ping -u rootansible all -m pingansible-playbook 00-cbhost.yml