Ansible repository for the homelab
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-11 17:29:47 +02:00
host_vars Add PiZero 2W as media center 2026-06-11 17:29:47 +02:00
roles/openvpn-client Fix warning 2024-06-06 08:48:19 +02:00
tasks fix: odroidhc4 playbook and vars 2023-01-21 21:33:58 +01:00
vars feat: add Odroid HC4 2022-11-06 17:14:29 +01:00
.gitignore fix: galaxy config and gitignore 2023-01-03 17:31:09 +01:00
ansible.cfg fix: galaxy config and gitignore 2023-01-03 17:31:09 +01:00
inventory Add PiZero 2W as media center 2026-06-11 17:29:47 +02:00
mediacenter.yml Add PiZero 2W as media center 2026-06-11 17:29:47 +02:00
odroidhc4.yml feat: add avahi daemon to odroidhc4 playbook 2023-01-21 21:34:30 +01:00
README.md Add PiZero 2W as media center 2026-06-11 17:29:47 +02:00
requirements.yml feat: add windows playbook 2023-02-28 23:41:46 +01:00
upgrade.yml feat: add Odroid HC4 2022-11-06 17:14:29 +01:00
windows.yml Remove some apps from windows playbook 2024-06-06 08:49:11 +02:00

🚧 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:

Media Center

playbook: mediacenter.yaml playbook: upgrade.yaml

Use the Raspberry Imager to create the standard Raspberry OS Bullseye image with user username and ssh enabled.

The steps are from here.