diff --git a/roles/matomo/tasks/install.yml b/roles/matomo/tasks/install.yml index e5d22fcfb..4edb9ce65 100644 --- a/roles/matomo/tasks/install.yml +++ b/roles/matomo/tasks/install.yml @@ -197,6 +197,19 @@ user: root cron_file: "matomo_daily" +- name: Set Permissions for token.php + copy: + content: "" + dest: "{{ matomo_path }}/matomo/tmp/cache/token.php" + group: "{{ apache_user }}" + owner: "{{ apache_user }}" + +- name: Set Permissions for tracker Directory + file: + path: "{{ matomo_path }}/matomo/tmp/cache/tracker" + state: directory + owner: "{{ apache_user }}" + group: "{{ apache_user }}" # RECORD Matomo AS INSTALLED