aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/general.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/general.yml')
-rw-r--r--tasks/general.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tasks/general.yml b/tasks/general.yml
index e9c1ef3..902d6c4 100644
--- a/tasks/general.yml
+++ b/tasks/general.yml
@@ -43,3 +43,18 @@
service:
name: auditd
state: started
+
+- name: Set up crontab
+ template:
+ src: etc_crontab.j2
+ dest: /etc/crontab
+ owner: root
+ group: wheel
+ mode: "0644"
+ register: etc_crontab
+
+- name: Restart cron
+ service:
+ name: cron
+ state: restarted
+ when: etc_crontab.changed