Add k8s shutdown/openup scripts
Add nut ansible roles Add acme certificate ansible role
This commit is contained in:
23
ansible/roles/nut_client/tasks/main.yaml
Normal file
23
ansible/roles/nut_client/tasks/main.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
- name: Template out upsmon.conf
|
||||
ansible.builtin.template:
|
||||
src: upsmon.conf.j2
|
||||
dest: /etc/nut/upsmon.conf
|
||||
trim_blocks: true
|
||||
owner: root
|
||||
group: nut
|
||||
mode: '0640'
|
||||
|
||||
- name: Copy nut-monitor systemd drop in file
|
||||
when: not ( nut_client_local_server | default(true) )
|
||||
ansible.builtin.template:
|
||||
src: nut-monitor_override.conf
|
||||
dest: /etc/systemd/system/nut-monitor.service.d/override.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: Start and enable nut-monitor
|
||||
ansible.builtin.service:
|
||||
name: nut-monitor
|
||||
state: restarted
|
||||
enabled: true
|
Reference in New Issue
Block a user