Skip to content
Snippets Groups Projects
Commit 1f564099 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible/playbooks/general#106 Configure cronjobs healthcheck

parent 9749199c
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,7 @@
cron:
name: Matomo Cron {{ matomo.id }}
minute: 20
job: cd /var/www/matomo/{{ matomo.id }} && ./console core:archive --url=https://{{ matomo.domain }}/ >> /var/log/matomo/{{ matomo.id }}.log 2>&1
job: cd /var/www/matomo/{{ matomo.id }} && ./console core:archive --url=https://{{ matomo.domain }}/ >> /var/log/matomo/{{ matomo.id }}.log 2>&1 && {{ lookup('healthchecks', '', base_url='https://healthchecks.lakedrops.com', api_key=healthchecks.api, host=inventory_hostname, user='root', jobname=['Matomo Cron ', matomo.id]|join(''), schedule='20 * * * *', channels=healthchecks.channels|join(',')) }}
user: '{{ apacheUser }}'
disabled: '{{ crons_disabled|default(false) }}'
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment