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/main.yml

29 lines
645 B
YAML
Raw Normal View History

---
2021-11-11 21:40:19 +01:00
- name: run optional versionscheck
ansible.builtin.include_tasks: versioncheck.yml
2019-05-17 16:07:17 +02:00
when: submodules_versioncheck|bool
2021-11-11 21:40:19 +01:00
- name: copy media files
ansible.builtin.include_tasks: copy_media_files.yml
- name: install zenity and mpv for notifications
2021-11-11 21:20:47 +01:00
become: true
2021-11-11 21:40:19 +01:00
ansible.builtin.package:
2019-04-24 13:15:38 +02:00
name:
- zenity
- mpv
state: present
2020-02-20 23:30:57 +01:00
when: manage_packages_akku_warning | bool
- name: Check akku every 3 minutes
2021-11-11 21:20:47 +01:00
become: true
2021-11-11 21:40:19 +01:00
ansible.builtin.cron:
name: check if akku still okay
job: /opt/akku.sh
minute: '*/3'
2019-04-24 13:07:10 +02:00
user: '{{ akku_user }}'
cron_file: /etc/crontab
2021-11-11 21:40:19 +01:00
state: absent
# todo: systemd timer