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 @@
# 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'
......
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