Skip to content

GiorgioAresu/homelab-ansible

Repository files navigation

🚧 homelab-ansible

Ansible repository for my homelab. I'm currently learning Ansible so this is a way to practice it. With time, more and more of my homelab config will land here.

To use this, you need to setup:

  • Ansible Vault, save the key in ~/.ansible/vault_pass.txt.
  • bitwarden-cli (bw) installed and logged in.
  • Required galaxy modules, ansible-galaxy install -r requirements.yml.

The playbook badges highlight compatibility with a device.

📓 Notes

Odroid HC4

playbook: odroidhc4.yml playbook: upgrade.yaml

This device is used for offsite backup, and it's a bit delicate to make it work with ZFS reliably due to Armbian kernel trickery.

TL;DR: at the moment, flash latest Jammy with 5.15.y.

As a general guideline, you need to cross check 3 things:

  • Kernel version included in the image you're downloading from here (eg. 5.19.y).
  • Packages in repos (debian).
  • Supported kernels by OpenZFS version.

In Armbian, kernel versions are named by branch and not by version. It tends to be very old on current and very new on edge, but the issue with edge is that other packages might still be old.

Once installed, the trick is to install the correct headers and then freeze the firmware to avoid ZFS breaking on the first kernel update. This is taken care of by the playbook.

Windows

playbook: windows.yml

Before starting you need to set up Windows to allow SSH connections:

About

Ansible repository for the homelab

Resources

Stars

Watchers

Forks

Languages