GitHunt
GE

geerlingguy/ansible-role-nut_client

Ansible Role - NUT Client configuration

Ansible Role: NUT Client

CI

Installs NUT client on Linux servers for Network UPS Tools power control.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

nut_client_ups: nut-server
nut_client_server: 127.0.0.1
nut_client_username: observer
nut_client_password: password_here
nut_client_type: secondary

Controls the nut-client primary server access options.

nut_client_state: started
nut_client_enabled: true

Controls the nut-client service options.

Dependencies

None.

Example Playbook

- hosts: servers
  become: true
  roles:
    - geerlingguy.nut_client

License

GPLv3

Author Information

This role was created in 2025 by Jeff Geerling, author of Ansible for DevOps.

Contributors

GNU General Public License v3.0
Created February 19, 2025
Updated January 8, 2026