Feat: enabe netserver for nut
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user