diff --git a/tasks/install.yml b/tasks/install.yml
index 084cff1285f513e974b3275ab2a12db9eb7e8390..67be2cd9a616befd9afc01df97fcd2a71ecda064 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -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
diff --git a/tasks/main.yml b/tasks/main.yml
index 9ceb317d7c4149fd4a9ca456f921c2e686699d1e..c680e11669b0d337cca73d2c9c7d66dc71f72e37 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -29,5 +29,6 @@
       tags:
         - ApacheConfig
         - deploy
+        - cron
 
   when: not excluded_roles or "matomo" not in excluded_roles