Files
Apache-LXC-Intranet/playbooks/cron.yml
2026-06-13 13:40:17 +01:00

18 lines
435 B
YAML

- name: modify crontab
hosts: apache-intranet
become: true
tasks:
- name: create crontab cleanup entry
lineinfile:
path: /etc/crontab
line: '30 4 * * * root /usr/bin/rm /var/www/files/* 2>/dev/null'
state: present
- name: create crontab entry to run sysctl reload at boot
lineinfile:
path: /etc/crontab
line: '@reboot root /usr/sbin/sysctl -p'
state: present