mirror of
https://github.com/roles-ansible/role_akku_warning.git
synced 2024-08-16 10:09:50 +02:00
24 lines
626 B
YAML
24 lines
626 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:
|
|
- systemctl daemon-reload
|
|
- 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:
|
|
- systemctl daemon-reload
|
|
- systemctl enable battery_check.timer
|