This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In Debian-world, cron.daily runs at a random time. This is an ansible task to | |
# change it to run at an hour specified by `cron_daily_time`. | |
- name: Change cron.daily to run at a specified time | |
become: yes | |
replace: | |
path: /etc/crontab | |
regexp: '(\S*[ \t])(\S*)([ \t].*cron\.daily)' | |
replace: '\g<1>{{ cron_daily_time }}\g<3>' |