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

34 lines
707 B
YAML
Raw Normal View History

2022-01-14 19:46:59 +01:00
---
- name: cron | Create fstrim daily job
copy:
src: fstrim
dest: /etc/periodic/daily/fstrim
owner: root
group: root
mode: 0755
# It is recomended to preserve /var/tmp across reboots
- name: cron | Create empty /var/tmp/ monthly job
copy:
src: empty-tmp
dest: /etc/periodic/monthly/empty-tmp
owner: root
group: root
mode: 0755
- name: cron | Create btrfs-scrub monthly job
copy:
src: btrfs-scrub
dest: /etc/periodic/monthly/btrfs-scrub
owner: root
group: root
mode: 0755
when: rootfs == 'btrfs'
- name: cron | Add crond service to runlevel 'default'
service:
name: crond
runlevel: default
enabled: yes
state: started