add cron handler

This commit is contained in:
Pig Monkey 2016-01-30 16:10:21 -08:00
parent 157805398d
commit 8d3a7c8533
3 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
- name: restart cron
service: name=cronie.service state=restarted

View file

@ -2,3 +2,4 @@
dependencies:
- { role: networkmanager }
- { role: systemd }
- { role: cron }

View file

@ -36,11 +36,16 @@
file: path=/etc/systemd/system/cronie.service.d state=directory
tags:
- msmtp
- cron
- name: Override cronie send mail via msmtp
copy: src=cronie-service-msmtp.conf dest=/etc/systemd/system/cronie.service.d/msmtp.conf
notify:
- reload systemd config
- restart cron
tags:
- msmtp
- cron
- name: Copy msmtpq script
copy: src=/usr/share/doc/msmtp/msmtpq/msmtpq dest=/usr/local/bin/ mode=0755