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

Configure maintenance cron

parent 615805ce
No related branches found
No related tags found
No related merge requests found
......@@ -174,3 +174,23 @@
ignore_errors: yes
tags:
- deploy
- name: Ensure Log Directory
file:
path: /var/log/matomo
state: directory
owner: '{{ apacheUser }}'
group: '{{ apacheUser }}'
mode: 0775
tags:
- cron
- name: Configure cron
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
user: '{{ apacheUser }}'
disabled: '{{ crons_disabled|default(false) }}'
tags:
- cron
......@@ -29,5 +29,6 @@
tags:
- ApacheConfig
- deploy
- cron
when: not excluded_roles or "matomo" not in excluded_roles
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