mirror of
https://github.com/roles-ansible/role_akku_warning.git
synced 2024-08-16 10:09:50 +02:00
28 lines
645 B
YAML
28 lines
645 B
YAML
---
|
|
- name: run optional versionscheck
|
|
ansible.builtin.include_tasks: versioncheck.yml
|
|
when: submodules_versioncheck|bool
|
|
|
|
- name: copy media files
|
|
ansible.builtin.include_tasks: copy_media_files.yml
|
|
|
|
- name: install zenity and mpv for notifications
|
|
become: true
|
|
ansible.builtin.package:
|
|
name:
|
|
- zenity
|
|
- mpv
|
|
state: present
|
|
when: manage_packages_akku_warning | bool
|
|
|
|
- name: Check akku every 3 minutes
|
|
become: true
|
|
ansible.builtin.cron:
|
|
name: check if akku still okay
|
|
job: /opt/akku.sh
|
|
minute: '*/3'
|
|
user: '{{ akku_user }}'
|
|
cron_file: /etc/crontab
|
|
state: absent
|
|
|
|
# todo: systemd timer
|