Add k8s shutdown/openup scripts
Add nut ansible roles Add acme certificate ansible role
This commit is contained in:
@ -41,17 +41,3 @@
|
||||
name: nut-server
|
||||
state: restarted
|
||||
enabled: true
|
||||
|
||||
- name: Template out upsmon.conf
|
||||
ansible.builtin.template:
|
||||
src: upsmon.conf.j2
|
||||
dest: /etc/nut/upsmon.conf
|
||||
owner: root
|
||||
group: nut
|
||||
mode: '0640'
|
||||
|
||||
- name: Start and enable nut-monitor
|
||||
ansible.builtin.service:
|
||||
name: nut-monitor
|
||||
state: restarted
|
||||
enabled: true
|
||||
|
11
ansible/roles/nut_server/templates/upsd.users.j2
Normal file
11
ansible/roles/nut_server/templates/upsd.users.j2
Normal file
@ -0,0 +1,11 @@
|
||||
[{{ nut_client_primary_username }}]
|
||||
password = {{ nut_client_primary_password }}
|
||||
upsmon primary
|
||||
actions = SET
|
||||
instcmds = ALL
|
||||
|
||||
[{{ nut_client_secondary_username }}]
|
||||
password = {{ nut_client_secondary_password }}
|
||||
upsmon secondary
|
||||
actions = SET
|
||||
instcmds = ALL
|
Reference in New Issue
Block a user