Compare commits

...

2 Commits

Author SHA1 Message Date
Ricard Illa cc1a43322e nut LISTEN ip 2023-01-25 18:15:16 +01:00
Ricard Illa f01821b3a9 nut LISTEN ip 2023-01-25 17:55:51 +01:00
1 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,14 @@
password = "{{ nut_upsmon_password }}"
upsmon {{ nut_types[nut_mode] }}
- name: allow NUT to listen to all IPs
blockinfile:
path: /etc/nut/upsd.conf
block: |
LISTEN 0.0.0.0
LISTEN ::1
when: nut_mode == "netserver"
- name: start and enable nut-upsd
service:
name: nut-upsd