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.pub
cp /path/to/id_rsa ~/.ssh/id_rsa
chmod 700 ~/.ssh
chmod 644 ~/.ssh/id_rsa.pub
chmod 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 root
ansible all -m ping
ansible-playbook 00-cbhost.yml