From a810e9c69179b9593e038ee96ea82554044f83d9 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 8 Aug 2018 21:38:56 -0500 Subject: [PATCH] roles/cronie: Install cronie The minimal Fedora installation does not include a cron implementation. The *cronie* role can be applied to hosts installed in this way to ensure that cron is available for task scheduling. --- roles/cronie/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/cronie/tasks/main.yml diff --git a/roles/cronie/tasks/main.yml b/roles/cronie/tasks/main.yml new file mode 100644 index 0000000..8d9368b --- /dev/null +++ b/roles/cronie/tasks/main.yml @@ -0,0 +1,15 @@ +- name: ensure cronie is installed + package: + name=cronie + state=present + tags: + - install + +- name: ensure cronie starts at boot + service: + name=crond + enabled=yes +- name: ensure cronie is running + service: + name=crond + state=started