add handler to restart cron service after on cronjob change
This commit is contained in:
parent
856255b7c6
commit
3a6efe1f02
1 changed files with 10 additions and 0 deletions
|
@ -534,6 +534,7 @@
|
||||||
src: templates/pottwal/renovate-cron.j2
|
src: templates/pottwal/renovate-cron.j2
|
||||||
dest: /etc/cron.hourly/renovate-bot
|
dest: /etc/cron.hourly/renovate-bot
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
|
notify: reload cron
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: Restart prosody
|
- name: Restart prosody
|
||||||
|
@ -546,3 +547,12 @@
|
||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: reload cron
|
||||||
|
ansible.builtin.shell:
|
||||||
|
cmd: service cron reload
|
||||||
|
warn: no
|
||||||
|
# Use the shell call because the task sometimes has problems finding the service state
|
||||||
|
# service:
|
||||||
|
# name: cron
|
||||||
|
# state: restarted
|
Loading…
Reference in a new issue