2021-11-11 23:08:51 +01:00
|
|
|
---
|
2021-11-15 00:13:19 +01:00
|
|
|
- name: setup battery_check.service
|
2021-11-11 23:08:51 +01:00
|
|
|
become: true
|
2021-11-15 00:13:19 +01:00
|
|
|
ansible.builtin.template:
|
|
|
|
src: 'templates/battery_check.service.j2'
|
|
|
|
dest: '/usr/lib/systemd/system/battery_check.service'
|
|
|
|
mode: 0755
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify:
|
|
|
|
- systemctl daemon-reload
|
|
|
|
- systemctl start battery_check.service
|
2021-11-11 23:08:51 +01:00
|
|
|
|
2021-11-15 00:13:19 +01:00
|
|
|
- name: setup battery_check.timer
|
|
|
|
become: true
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: 'templates/battery_check.timer.j2'
|
|
|
|
dest: '/usr/lib/systemd/system/battery_check.timer'
|
|
|
|
mode: 0755
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify:
|
|
|
|
- systemctl daemon-reload
|
|
|
|
- systemctl enable battery_check.timer
|