From fb326651a001b592dc04f6a035200a16922c128d Mon Sep 17 00:00:00 2001 From: Carl Wivagg Date: Wed, 25 May 2022 06:51:24 -0400 Subject: [PATCH] Add section for cookie resetting --- roles/matomo/tasks/install.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/matomo/tasks/install.yml b/roles/matomo/tasks/install.yml index 0a5684f4b..5c2303519 100644 --- a/roles/matomo/tasks/install.yml +++ b/roles/matomo/tasks/install.yml @@ -89,6 +89,16 @@ body_format: form-urlencoded status_code: 302 register: matomo_setup_superuser +- name: Set a variable for the MATOMO_SESSID cookie + set_fact: + matomo_session_cookie: "MATOMO_SESSID={{ cookie.value }}" + when: + - matomo_table_creation.cookies is defined + - matomo_table_creation.cookies | length > 0 + - cookie.key == "MATOMO_SESSID" + loop: "{{ matomo_table_creation.cookies | dict2items }}" + loop_control: + loop_var: cookie - name: Configure Matomo to track IIAB uri: url: "{{ matomo_url }}index.php?action=firstWebsiteSetup&module=Installation"