Feat: enabe netserver for nut

This commit is contained in:
2022-12-03 10:06:05 +01:00
parent 38c4291b90
commit 558530e16e
4 changed files with 27 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
lineinfile:
path: /etc/nut/nut.conf
regexp: '^MODE='
line: MODE=standalone
line: MODE=netserver
notify: restart nut-server
- name: Copy ups.conf
@@ -18,3 +18,12 @@
group: root
mode: 0644
notify: restart nut-server
- name: Copy upsd.conf
template:
src: upsd.conf.j2
dest: /etc/nut/upsd.conf
owner: root
group: root
mode: 0644
notify: restart nut-server