Feat(nut): configure ups, upsmon, upsd et nut
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
line: MODE=netserver
|
||||
notify: restart nut-server
|
||||
|
||||
# List of connected ups
|
||||
- name: Copy ups.conf
|
||||
template:
|
||||
src: ups.conf.j2
|
||||
@@ -19,6 +20,7 @@
|
||||
mode: 0644
|
||||
notify: restart nut-server
|
||||
|
||||
# Service that communicate with UPSs
|
||||
- name: Copy upsd.conf
|
||||
template:
|
||||
src: upsd.conf.j2
|
||||
@@ -27,3 +29,33 @@
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart nut-server
|
||||
|
||||
# List of users allowed to communicate with upsd through network
|
||||
- name: Copy upsd.users
|
||||
template:
|
||||
src: upsd.users.j2
|
||||
dest: /etc/nut/upsd.users
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart nut-server
|
||||
|
||||
# Nut mode
|
||||
- name: Copy nut.conf
|
||||
template:
|
||||
src: nut.conf.j2
|
||||
dest: /etc/nut/nut.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart nut-server
|
||||
|
||||
# Service that interact with upsd to act
|
||||
- name: Copy upsmon.conf
|
||||
template:
|
||||
src: upsmon.conf.j2
|
||||
dest: /etc/nut/upsmon.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart nut-server
|
||||
|
||||
Reference in New Issue
Block a user