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

update cron

This commit is contained in:
L3D 2021-11-11 21:40:19 +01:00
parent 49a16adaa5
commit cf455f6237
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -1,33 +1,28 @@
---
- include_tasks: versioncheck.yml
- name: run optional versionscheck
ansible.builtin.include_tasks: versioncheck.yml
when: submodules_versioncheck|bool
- include_tasks: copy_media_files.yml
- name: copy media files
ansible.builtin.include_tasks: copy_media_files.yml
- name: install zenity and mpv for notifications
become: true
package:
ansible.builtin.package:
name:
- zenity
- mpv
state: present
when: manage_packages_akku_warning | bool
- name: Make sure cron is installed
become: true
package:
name:
- cron
state: present
when:
- manage_packages_akku_warning | bool
- install_and_enable_cronie | bool
- name: Check akku every 3 minutes
become: true
cron:
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