Ansible playbook for configuring whatever server will be managing my home-server (system that provides services like local DNS and Unifi Protect video backup).
- Install Ansible:
pip3 install --user git+https://github.com/ansible/ansible.git@v2.16.4
- Run:
ansible-galaxy install -r requirements.yml
- Add vault password to
.vault-pass
- Install
sshpass
: https://github.com/jsumners/dotfiles/blob/f62ad272e9ba07fc3649e7b0deb96ff261304f90/install-sshpass.sh
Some things need to be done on the server manually before it is ready to accept Ansible automation.
- Update
/etc/ssh/sshd_config
to enable "PasswordAuthentication yes" ln -s /etc/sv/sshd /var/service
- Make sure non-root user is added:
useradd -m jsumners && passwd jsumners
xbps-install -y python3
Finally, run ansible-playbook main.yml
.