mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-09 23:43:30 +01:00
Update variables to allow easier overriding of vhosts.
This commit is contained in:
parent
d2401eb840
commit
0318fedaf4
5 changed files with 35 additions and 6 deletions
14
defaults/Debian.yml
Normal file
14
defaults/Debian.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
apache_daemon: apache2
|
||||||
|
apache_server_root: /etc/apache2
|
||||||
|
apache_conf_path: /etc/apache2/sites-enabled
|
||||||
|
apache_packages:
|
||||||
|
- apache2
|
||||||
|
- apache2-mpm-prefork
|
||||||
|
- apache2-utils
|
||||||
|
- apache2.2-bin
|
||||||
|
- apache2.2-common
|
||||||
|
apache_vhosts:
|
||||||
|
- {servername: "local.dev", documentroot: "/var/www"}
|
||||||
|
apache_mods_enabled:
|
||||||
|
- rewrite.load
|
11
defaults/RedHat.yml
Normal file
11
defaults/RedHat.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
apache_daemon: httpd
|
||||||
|
apache_server_root: /etc/httpd
|
||||||
|
apache_conf_path: /etc/httpd/conf.d
|
||||||
|
apache_packages:
|
||||||
|
- httpd
|
||||||
|
- httpd-devel
|
||||||
|
- mod_ssl
|
||||||
|
- openssh
|
||||||
|
apache_vhosts:
|
||||||
|
- {servername: "local.dev", documentroot: "/var/www/html"}
|
10
defaults/main.yml
Normal file
10
defaults/main.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
apache_enablerepo: ""
|
||||||
|
|
||||||
|
apache_listen_port: 80
|
||||||
|
|
||||||
|
apache_create_vhosts: true
|
||||||
|
|
||||||
|
apache_vhosts:
|
||||||
|
# Additional properties: 'serveradmin, extra_parameters'.
|
||||||
|
- {servername: "local.dev", documentroot: "/var/www/html"}
|
|
@ -7,5 +7,3 @@ apache_packages:
|
||||||
- httpd-devel
|
- httpd-devel
|
||||||
- mod_ssl
|
- mod_ssl
|
||||||
- openssh
|
- openssh
|
||||||
apache_vhosts:
|
|
||||||
- {servername: "local.dev", documentroot: "/var/www/html"}
|
|
||||||
|
|
|
@ -4,7 +4,3 @@ apache_enablerepo: ""
|
||||||
apache_listen_port: 80
|
apache_listen_port: 80
|
||||||
|
|
||||||
apache_create_vhosts: true
|
apache_create_vhosts: true
|
||||||
|
|
||||||
apache_vhosts:
|
|
||||||
# Additional properties: 'serveradmin, extra_parameters'.
|
|
||||||
- {servername: "local.dev", documentroot: "/var/www/html"}
|
|
||||||
|
|
Loading…
Reference in a new issue