From a3caa6b75efde03d1f22bec3e4e3bdc0a24e18b0 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Sun, 1 Mar 2015 14:18:00 +0100 Subject: [PATCH] Ensure directory /etc/cron.d exists even if `cron` is not installed yet. --- tasks/manage_pki_realms.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/manage_pki_realms.yml b/tasks/manage_pki_realms.yml index 982b3f0..dec1f0b 100644 --- a/tasks/manage_pki_realms.yml +++ b/tasks/manage_pki_realms.yml @@ -29,6 +29,13 @@ when: ((item.source is defined and item.destination is defined) and (item.makefile is undefined or (item.makefile is defined and item.makefile))) +- name: Ensure directory /etc/cron.d exists + # ... even if `cron` is not installed + file: + state: directory + name: /etc/cron.d + mode: 0755 + - name: Regenerate Diffie-Hellman parameters periodically cron: name: 'Regenerate Diffie-Hellman parameters in all PKI realms'