This repository has been archived on 2024-02-16. You can view files and clone it, but cannot push or open issues or pull requests.
sysconfig/roles/cron/tasks/main.yml

24 lines
601 B
YAML

---
# It is recomended to preserve /var/tmp across reboots
- name: cron | Create empty /var/tmp/ weekly job
copy:
src: empty-tmp
dest: /etc/periodic/weekly/empty-tmp
owner: root
group: root
mode: '755'
- name: cron | Create trimming cron jobs
import_tasks: trim.yml
- name: cron | Create scrubbing cron jobs for zfs/btrfs
import_tasks: scrub.yml
- name: cron | Install logrotate and cpulimit
community.general.apk:
name: logrotate, cpulimit
state: present
- name: cron | Import tasks specific to {{ crond_provider }}
include_tasks: '{{ crond_provider }}.yml'