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:
parent
49a16adaa5
commit
cf455f6237
1 changed files with 9 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue