2019-04-07 18:52:35 +02:00
|
|
|
---
|
2019-05-17 16:07:17 +02:00
|
|
|
- include_tasks: versioncheck.yml
|
|
|
|
when: submodules_versioncheck|bool
|
|
|
|
|
2020-02-20 23:30:57 +01:00
|
|
|
- include_tasks: copy_media_files.yml
|
2019-04-07 18:52:35 +02:00
|
|
|
|
|
|
|
- name: install zenity and mpv for notifications
|
2021-11-11 21:20:47 +01:00
|
|
|
become: true
|
2019-04-07 18:52:35 +02:00
|
|
|
package:
|
2019-04-24 13:15:38 +02:00
|
|
|
name:
|
2019-04-07 18:52:35 +02:00
|
|
|
- zenity
|
|
|
|
- mpv
|
|
|
|
state: present
|
2020-02-20 23:30:57 +01:00
|
|
|
when: manage_packages_akku_warning | bool
|
|
|
|
|
|
|
|
- name: Make sure cron is installed
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name:
|
2020-02-21 08:58:52 +01:00
|
|
|
- cron
|
2020-02-20 23:30:57 +01:00
|
|
|
state: present
|
|
|
|
when:
|
2020-02-20 23:38:18 +01:00
|
|
|
- manage_packages_akku_warning | bool
|
|
|
|
- install_and_enable_cronie | bool
|
2019-04-07 18:52:35 +02:00
|
|
|
|
2020-05-16 19:36:07 +02:00
|
|
|
- name: Check akku every 3 minutes
|
2021-11-11 21:20:47 +01:00
|
|
|
become: true
|
2019-04-07 18:52:35 +02:00
|
|
|
cron:
|
|
|
|
name: check if akku still okay
|
|
|
|
job: /opt/akku.sh
|
|
|
|
minute: '*/3'
|
2019-04-24 13:07:10 +02:00
|
|
|
user: '{{ akku_user }}'
|
2019-04-07 18:52:35 +02:00
|
|
|
cron_file: /etc/crontab
|