From c4d12eba1b5b6c27b318b84a58a442ee80aa9db0 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Fri, 17 Nov 2017 08:14:21 -0600 Subject: [PATCH] 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 --- playbooks/roles/system_crontab_coordination/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/roles/system_crontab_coordination/tasks/main.yml b/playbooks/roles/system_crontab_coordination/tasks/main.yml index a2d540d4b1..9ddf7fc584 100644 --- a/playbooks/roles/system_crontab_coordination/tasks/main.yml +++ b/playbooks/roles/system_crontab_coordination/tasks/main.yml @@ -20,3 +20,5 @@ owner: "root" group: "root" mode: "0644" + when: + - ansible_os_family == 'Debian'