diff --git a/ansible_apache_formation/defaults/main.yml b/ansible_apache_formation/defaults/main.yml index ed97d53..5794a03 100644 --- a/ansible_apache_formation/defaults/main.yml +++ b/ansible_apache_formation/defaults/main.yml @@ -1 +1,3 @@ --- +apache_service_name: httpd +apache_package_name: httpd diff --git a/ansible_apache_formation/templates/vhost.conf b/ansible_apache_formation/templates/vhost.conf index 7a2633c..b9cd35c 100644 --- a/ansible_apache_formation/templates/vhost.conf +++ b/ansible_apache_formation/templates/vhost.conf @@ -2,7 +2,7 @@ ServerName {{ apache_server_name }} ServerAlias www.{{ apache_server_name }} ServerAlias {{ inventory_hostname }} - DocumentRoot /var/www/html/{{ apache_server_name }} + DocumentRoot {{ apache_documentroot }} CustomLog /var/log/httpd/{{ apache_server_name }}_access.log combined ErrorLog /var/log/httpd/{{ apache_server_name }}_error.log diff --git a/host_vars/centos1.formation.opendoor.fr.yml b/host_vars/centos1.formation.opendoor.fr.yml new file mode 100644 index 0000000..9122b22 --- /dev/null +++ b/host_vars/centos1.formation.opendoor.fr.yml @@ -0,0 +1,2 @@ +apache_server_name: orsys.fr +apache_documentroot: /srv/www/orsys.fr