Files
2026-07-05 09:19:22 +00:00

24 lines
625 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
- name: create crontab entry running the SSL check script 2AM daily
lineinfile:
path: /etc/crontab
line: '0 2 * * * root /root/ssl_check.sh'
state: present