---
# Cron jobs specific to Linux
- name: General | Cron | Ansible | Linux | Update System Flatpaks
cron:
user: ansible
name: "Update System Flatpaks"
special_time: hourly
job: "sudo flatpak update --noninteractive"
state: present
disabled: "{{ 'yes' if battery else 'no' }}"
when: flatpak_distro
- name: General | Cron | Ansible | Linux | Update User Flatpaks
name: "Update User Flatpaks"
job: "sudo -u {{ user }} flatpak update --noninteractive"