r/nut: Add role for Network UPS Tools

The *nut* role installs and configures Network UPS Tools.
This commit is contained in:
2021-10-31 14:25:59 -05:00
parent 19330ac555
commit 4beade5465
6 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{% for name, settings in nut_ups.items() %}
[{{ name }}]
{% for setting in settings %}
{% for key, value in setting|dictsort %}
{{ key }} = "{{ value }}"
{% endfor %}
{% endfor %}
{% endfor %}

View File

@@ -0,0 +1 @@
LISTEN {{ nut_listen.address }} {{ nut_listen.port }}

View File

@@ -0,0 +1,8 @@
{% for username, settings in nut_users.items() %}
[{{ username }}]
{% for setting in settings %}
{% for key, value in setting|dictsort %}
{{ key }} = {{ value }}
{% endfor %}
{% endfor %}
{% endfor %}