mirror of
https://github.com/roles-ansible/role_akku_warning.git
synced 2024-08-16 10:09:50 +02:00
24 lines
662 B
YAML
24 lines
662 B
YAML
---
|
|
- name: Setup battery_check.service
|
|
become: true
|
|
ansible.builtin.template:
|
|
src: 'templates/battery_check.service.j2'
|
|
dest: '/usr/lib/systemd/system/battery_check.service'
|
|
mode: '0755'
|
|
owner: 'root'
|
|
group: 'root'
|
|
notify:
|
|
- 'Run systemctl daemon-reload'
|
|
- 'Run systemctl start battery_check.service'
|
|
|
|
- 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:
|
|
- 'Run systemctl daemon-reload'
|
|
- 'Run systemctl enable battery_check.timer'
|