nut LISTEN ip
parent
d4eee168fa
commit
f01821b3a9
|
@ -223,6 +223,8 @@ all:
|
|||
|
||||
nut_host: localhost
|
||||
|
||||
nut_listen: "10.0.0.0/24"
|
||||
|
||||
caladan:
|
||||
ansible_host: caladan
|
||||
ansible_user: ansible
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue