nut LISTEN ip

main
Ricard Illa 2023-01-25 17:55:51 +01:00
parent d4eee168fa
commit f01821b3a9
2 changed files with 8 additions and 0 deletions

View File

@ -223,6 +223,8 @@ all:
nut_host: localhost
nut_listen: "10.0.0.0/24"
caladan:
ansible_host: caladan
ansible_user: ansible

View File

@ -27,6 +27,12 @@
password = "{{ nut_upsmon_password }}"
upsmon {{ nut_types[nut_mode] }}
- name: add LISTEN line to /etc/nut/upsd.conf
lineinfile:
path: /etc/nut/upsd.conf
regexp: '^LISTEN'
line: "LISTEN {{ nut_listen }}"
- name: start and enable nut-upsd
service:
name: nut-upsd