diff --git a/inventory/vagrant/group_vars/webserver/drupal.yml b/inventory/vagrant/group_vars/webserver/drupal.yml index 6e7ea6b8..0ae11f8c 100644 --- a/inventory/vagrant/group_vars/webserver/drupal.yml +++ b/inventory/vagrant/group_vars/webserver/drupal.yml @@ -58,6 +58,7 @@ drupal_enable_modules: drupal_trusted_hosts: - ^localhost$ - "{{ hostvars[groups['webserver'][0]].ansible_host }}" + - "^' . preg_quote($_SERVER['SERVER_NAME']) . '$" drupal_trusted_hosts_file: "{{ drupal_core_path }}/sites/default/settings.php" drupal_public_filesystem: "{{ drupal_core_path }}/sites/default/files" drupal_external_libraries_directory: "{{ drupal_core_path }}/libraries"