mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
add cron handler
This commit is contained in:
parent
157805398d
commit
8d3a7c8533
3 changed files with 9 additions and 0 deletions
3
roles/cron/handlers/main.yml
Normal file
3
roles/cron/handlers/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: restart cron
|
||||
service: name=cronie.service state=restarted
|
||||
|
|
@ -2,3 +2,4 @@
|
|||
dependencies:
|
||||
- { role: networkmanager }
|
||||
- { role: systemd }
|
||||
- { role: cron }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue