diff --git a/tasks/install.yml b/tasks/install.yml index 569c4009550887468dda2156fdabc6c8333f308c..967958a6c97b9c0327a3f139b0898fc368eea3cc 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -2,12 +2,14 @@ # file: roles/matomo/tasks/install.yml - block: - - set_fact: + - name: Set facts without jail + set_fact: webRoot: /var/www/matomo/{{ matomo.id }} apacheUser: www-data apacheLogDir: /var/log/apache2 when: matomo.jail is not defined - - set_fact: + - name: Set facts with jail + set_fact: webRoot: '{{ jailroot }}/{{ matomo.id }}/var/www/matomo' apacheUser: '{{ matomo.id }}' apacheLogDir: '{{ jailroot }}/{{ matomo.id }}/var/log/apache2'