Fix crontab errors on CentOS/SUSE
CentOS comes with a default empty crontab file that is fine for
most deployers. It also lacks the `--report` option for `run-parts`
that Ubuntu has.
SUSE doesn't have run-parts at all.
This causes the server administrator to receive emails with errors
from cron on a regular basis. This patch limits the crontab
deployment to Ubuntu only and skips CentOS/SUSE hosts.
Closes-Bug: 1732762
Change-Id: Iba714e1e20e1a27b1a5bb58a714dee3916faba8f
(cherry picked from commit c4d12eba1b
)
This commit is contained in:
parent
3e295f95f5
commit
765cbc2ba0
|
@ -20,3 +20,5 @@
|
|||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
|
|
Loading…
Reference in New Issue