feat: make ansible-lint happier

This commit is contained in:
VC
2024-07-05 11:53:32 +02:00
parent fc34ef3917
commit 2ec2bcc2a0
29 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1 @@
MODE=netclient

View File

@@ -0,0 +1,6 @@
---
- name: restart nut-client
service:
name: nut-client
state: restarted

View File

@@ -0,0 +1,21 @@
---
- name: install nut client
package:
name: nut-client
state: present
- name: upsmon.conf file
template:
src: upsmon.conf.j2
dest: /etc/nut/upsmon.conf
mode: '0640'
notify: restart nut-client
- name: nut.conf file
copy:
src: files/nut.conf
dest: /etc/nut/nut.conf
mode: '0640'
when: inventory_hostname not in groups['nut_server']
notify: restart nut-client

View File

@@ -0,0 +1,15 @@
MONITOR eaton3s@{{ hostvars[groups['nut_server'][0]]['ansible_default_ipv4']['address'] }}:3493 1 {% if inventory_hostname in groups['nut_server'] %}monuser {{ nut_pass }} master{% else %}slaveuser {{ nut_pass }} slave{% endif %}
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONBATT SYSLOG+WALL
NOTIFYFLAG ONLINE SYSLOG+WALL
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5