Skip to content
Snippets Groups Projects
Commit 37f90106 authored by jurgenhaas's avatar jurgenhaas
Browse files

Support optional attribute "active" for domains

parent 6b81273f
Branches
No related tags found
No related merge requests found
......@@ -26,6 +26,6 @@
notify: "Apache | Restart Apache"
- include_tasks: apache_auth.yml
when: drupal_domain.apache_auth is defined
when: drupal_domain.apache_auth is defined and drupal_domain.apache_auth.active|default(true)
tags: 'ApacheConfig'
......@@ -66,7 +66,7 @@
<Directory {{ docRoot }}/>
Options +ExecCGI +Indexes +FollowSymLinks +MultiViews
AllowOverride All
{% if drupal_domain.apache_auth is defined %}
{% if drupal_domain.apache_auth is defined and drupal_domain.apache_auth.active|default(true) %}
AuthType {{ drupal_domain.apache_auth.type }}
AuthName "{{ drupal_domain.apache_auth.name }}"
AuthUserFile {{ webRoot }}/passwords/{{ drupal_domain.apache_auth.user }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment