Skip to content
Snippets Groups Projects
Commit 9d840c2d authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#85 Name set_fact tasks

parent 428dfd1a
No related branches found
No related tags found
No related merge requests found
...@@ -2,12 +2,14 @@ ...@@ -2,12 +2,14 @@
# file: roles/matomo/tasks/install.yml # file: roles/matomo/tasks/install.yml
- block: - block:
- set_fact: - name: Set facts without jail
set_fact:
webRoot: /var/www/matomo/{{ matomo.id }} webRoot: /var/www/matomo/{{ matomo.id }}
apacheUser: www-data apacheUser: www-data
apacheLogDir: /var/log/apache2 apacheLogDir: /var/log/apache2
when: matomo.jail is not defined when: matomo.jail is not defined
- set_fact: - name: Set facts with jail
set_fact:
webRoot: '{{ jailroot }}/{{ matomo.id }}/var/www/matomo' webRoot: '{{ jailroot }}/{{ matomo.id }}/var/www/matomo'
apacheUser: '{{ matomo.id }}' apacheUser: '{{ matomo.id }}'
apacheLogDir: '{{ jailroot }}/{{ matomo.id }}/var/log/apache2' apacheLogDir: '{{ jailroot }}/{{ matomo.id }}/var/log/apache2'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment