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

#12 Use domain independent name for Apache conf file

parent ebcf6dad
Branches
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
- name: "Apache Configuration File"
template:
src='vhost.conf'
dest='/etc/apache2/sites-available/{{ drupal_domain.domain }}{{ apache_conf_ext }}'
dest='/etc/apache2/sites-available/{{ drupal.id }}-{{ drupal_domain.shortname|default("default") }}{{ apache_conf_ext }}'
owner='root'
group='root'
mode='664'
......@@ -12,7 +12,7 @@
- "Apache | Restart Apache"
- name: "Apache enable our new site(s)"
command: a2ensite {{ drupal_domain.domain }} creates=/etc/apache2/sites-enabled/{{ drupal_domain.domain }}{{ apache_conf_ext }}
command: a2ensite {{ drupal.id }}-{{ drupal_domain.shortname|default("default") }} creates=/etc/apache2/sites-enabled/{{ drupal.id }}-{{ drupal_domain.shortname|default("default") }}{{ apache_conf_ext }}
notify:
- "Apache | Restart Apache"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment