add handler to restart cron service after on cronjob change

This commit is contained in:
David Kilias 2023-07-29 01:44:30 +02:00 committed by Stefan Haun
parent 856255b7c6
commit 3a6efe1f02

View file

@ -534,6 +534,7 @@
src: templates/pottwal/renovate-cron.j2
dest: /etc/cron.hourly/renovate-bot
mode: "0700"
notify: reload cron
handlers:
- name: Restart prosody
@ -546,3 +547,12 @@
service:
name: apache2
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