From 9d840c2da68bb58282fcd576cd6d5f129179f478 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 11 Jun 2019 19:02:23 +0200 Subject: [PATCH] ansible-playbooks/general#85 Name set_fact tasks --- tasks/install.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index 569c400..967958a 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' -- GitLab