2021-11-11 23:08:51 +01:00
|
|
|
---
|
2023-10-29 00:45:14 +02: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'
|
2023-10-29 00:45:14 +02:00
|
|
|
mode: '0755'
|
|
|
|
owner: 'root'
|
|
|
|
group: 'root'
|
2021-11-15 00:13:19 +01:00
|
|
|
notify:
|
2023-10-29 00:45:14 +02:00
|
|
|
- 'Run systemctl daemon-reload'
|
|
|
|
- 'Run systemctl start battery_check.service'
|
2021-11-11 23:08:51 +01:00
|
|
|
|
2023-10-29 00:45:14 +02:00
|
|
|
- name: Setup battery_check.timer
|
2021-11-15 00:13:19 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: 'templates/battery_check.timer.j2'
|
|
|
|
dest: '/usr/lib/systemd/system/battery_check.timer'
|
2023-10-29 00:45:14 +02:00
|
|
|
mode: '0755'
|
|
|
|
owner: 'root'
|
|
|
|
group: 'root'
|
2021-11-15 00:13:19 +01:00
|
|
|
notify:
|
2023-10-29 00:45:14 +02:00
|
|
|
- 'Run systemctl daemon-reload'
|
|
|
|
- 'Run systemctl enable battery_check.timer'
|