Merge pull request #56 from Nextpertise/master

Add global config variable
This commit is contained in:
Jeff Geerling 2015-12-08 14:20:25 -06:00
commit 7f9f793191
4 changed files with 11 additions and 4 deletions

View file

@ -19,6 +19,12 @@ The repository to use when installing Apache (only used on RHEL/CentOS systems).
apache_listen_port: 80 apache_listen_port: 80
apache_listen_port_ssl: 443 apache_listen_port_ssl: 443
This role doesn't manage the apache configuration files (yet), however you can set/overwrite apache config inside the vhost file but outside the VirtualHost config. In order to do this change the `apache_global_settigs` variable.
apache_global_settigs: |
DirectoryIndex index.php index.html
# Other apache global settings
The ports on which apache should be listening. Useful if you have another service (like a reverse proxy) listening on port 80 or 443 and need to change the defaults. The ports on which apache should be listening. Useful if you have another service (like a reverse proxy) listening on port 80 or 443 and need to change the defaults.
apache_create_vhosts: true apache_create_vhosts: true

View file

@ -1,6 +1,9 @@
--- ---
apache_enablerepo: "" apache_enablerepo: ""
apache_global_settings: |
DirectoryIndex index.php index.html
apache_listen_port: 80 apache_listen_port: 80
apache_listen_port_ssl: 443 apache_listen_port_ssl: 443

View file

@ -1,5 +1,4 @@
{{ apache_global_settings }}
DirectoryIndex index.php index.html
{# Set up VirtualHosts #} {# Set up VirtualHosts #}
{% for vhost in apache_vhosts %} {% for vhost in apache_vhosts %}

View file

@ -1,5 +1,4 @@
{{ apache_global_settings }}
DirectoryIndex index.php index.html
{# Set up VirtualHosts #} {# Set up VirtualHosts #}
{% for vhost in apache_vhosts %} {% for vhost in apache_vhosts %}