Ansible setup for my homelab service(s)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nils Norman Haukås 1e630c309c :bug: fix upload limit in git lfs 1 year ago
group_vars/all :sparkles: add cron job for updating dns 1 year ago
inventory activate backup setup on jake 1 year ago
roles :bug: fix upload limit in git lfs 1 year ago
.gitignore wip: setup unattended-upgrade 1 year ago
Vagrantfile :bug: fix wrongful gitea task 1 year ago :memo: improve readme 1 year ago
site.yml :recycle: reactivate inactive role 1 year ago

My homelab documentation

Servers tend to get weird over time. Hence, I maintain this overview to remind myself of all the stuff running various places. This makes it easier to get everything back up and running when hardware eventually fails.

Systems currently handles by Ansible:

  • [service.main] a.k.a. “Jake” the a raspberry pi hosting various services.

Getting started with local development

Prerequisites: Ansible and Vagrant.

  1. Start local Vagrant with vagrant up --provision-with ansible.
    • Use vagrant destroy to fully delete box.
    • Use vagrant ssh to ssh inside a running box.
    • Use vagrant provision to quickly re-run Ansible changes when developing.

:point_up: This will fail if you don't have configured Ansible Vault password.

Deploying changes

  1. Call ansible-playbook site.yml -i inventory/production --ask-become-pass -e ansible_user=nilsnh.

How-to setup Raspberry Pi to use SSD storage

  1. Setup ext4 for file system.
  2. Setup auto-mount of ssd.
  3. Copy all files over from “/” to the mounted ssd.
  4. Update RbPi start script to boot from SSD.