> ## Content Index
> Fetch the complete content index at: https://logbuch-homelab.nichedthemes.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# v1.3.0: A role for the UPS
- URL: https://logbuch-homelab.nichedthemes.com/loft-ansible-v1-3-0-a-role-for-the-ups/
- Published: 2026-09-27T17:00:00.000Z
- Updated: 2026-09-27T17:00:00.000Z
- Description: A new role shuts the rack down in order when the UPS runs on battery: the nodes after five minutes, the NAS last. No breaking change.
- Author: Tomasz Wieland
- Tags: Homelab, loft-ansible, Power and heat, #changelog, #Import 2026-11-19 07:37

A new role, `nut`, shuts the rack down in order when the UPS runs on battery: the three nodes after five minutes, the NAS last. Until now a long power cut would have ended with an empty battery and four disks stopping mid-write.

## Added

- `nut` role: the NAS talks to the UPS over USB and serves its status, the nodes listen.
- Nodes shut down after five minutes on battery, the NAS when the battery reports low.
- `make check`, which runs the playbook with `--check --diff` against every host.

## Changed

- The `common` role sets the time zone to `Europe/Berlin` on every host.

## Fixed

- The `nfs` role restarted the NFS server on every run, even without a change.

```yaml
nut_mode: netserver
nut_ups_name: ups
nut_driver: usbhid-ups
nut_shutdown_after: 300
```