ansible/roles/cron/tasks/main.yml

9 lines
209 B
YAML
Raw Normal View History

2021-02-12 22:13:37 +01:00
---
- name: Enable logging for cron
lineinfile:
path: /etc/rsyslog.conf
regexp: "^cron.* /var/log/cron.log"
insertafter: "^#cron.*"
line: "cron.* /var/log/cron.log"
notify: Restart rsyslog