1
0
Fork 0
mirror of https://github.com/roles-ansible/role_akku_warning.git synced 2024-08-16 10:09:50 +02:00
role_akku_warning/tasks/timer.yml

25 lines
626 B
YAML
Raw Normal View History

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