From 1a7f3b48433ae69a3f039d163d3f0cf6d3f9a0fb Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Fri, 2 Aug 2024 14:14:12 +0200 Subject: [PATCH] Fix matomo_user for systemd jobs --- roles/ansible_node/templates/playbooks/matomo_cron.yml.j2 | 3 +++ .../templates/playbooks/matomo_queuedtracking.yml.j2 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/roles/ansible_node/templates/playbooks/matomo_cron.yml.j2 b/roles/ansible_node/templates/playbooks/matomo_cron.yml.j2 index 676b1f8..16ae2c7 100644 --- a/roles/ansible_node/templates/playbooks/matomo_cron.yml.j2 +++ b/roles/ansible_node/templates/playbooks/matomo_cron.yml.j2 @@ -13,6 +13,9 @@ {% endif %} {% if matomo_task_become_user is defined %} matomo_task_become_user: {{ matomo_task_become_user }} +{% endif %} +{% if matomo_user is defined %} + matomo_user: {{ matomo_user }} {% endif %} matomo_console_name: core:archive diff --git a/roles/ansible_node/templates/playbooks/matomo_queuedtracking.yml.j2 b/roles/ansible_node/templates/playbooks/matomo_queuedtracking.yml.j2 index dc95ff9..c34b7e4 100644 --- a/roles/ansible_node/templates/playbooks/matomo_queuedtracking.yml.j2 +++ b/roles/ansible_node/templates/playbooks/matomo_queuedtracking.yml.j2 @@ -14,6 +14,9 @@ {% if matomo_task_become_user is defined %} matomo_task_become_user: {{ matomo_task_become_user }} {% endif %} +{% if matomo_user is defined %} + matomo_user: {{ matomo_user }} +{% endif %} {% if matomo_domain is defined %} matomo_domain: {{ matomo_domain }} {% endif %}