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

ansible-roles/apache#4 Change roles and inventory to change Apache default version to 2.4

parent 6cd46fb5
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,4 @@ sd_plugins_files_dir: "{{ playbook_dir }}/files/sd-plugins" ...@@ -21,7 +21,4 @@ sd_plugins_files_dir: "{{ playbook_dir }}/files/sd-plugins"
sd_uninstallv1: no sd_uninstallv1: no
apache_conf_dir: 'conf.d'
apache_conf_ext: ''
mysql_root_password: 'root' mysql_root_password: 'root'
...@@ -27,12 +27,12 @@ ...@@ -27,12 +27,12 @@
- name: "ServerDensity | Apache | Configuration file for ServerDensity" - name: "ServerDensity | Apache | Configuration file for ServerDensity"
template: template:
src=etc-apache2-sites-available-sd-agent src=etc-apache2-sites-available-sd-agent
dest=/etc/apache2/sites-available/sd-agent{{ apache_conf_ext }} dest=/etc/apache2/sites-available/sd-agent{{ apache_conf_ext|default('.conf') }}
owner=root owner=root
group=root group=root
mode=0644 mode=0644
notify: "ServerDensity | Restart Apache" notify: "ServerDensity | Restart Apache"
- name: "ServerDensity | Apache | Enable the sd-agent site" - name: "ServerDensity | Apache | Enable the sd-agent site"
command: a2ensite sd-agent creates=/etc/apache2/sites-enabled/sd-agent{{ apache_conf_ext }} command: a2ensite sd-agent creates=/etc/apache2/sites-enabled/sd-agent{{ apache_conf_ext|default('.conf') }}
notify: "ServerDensity | Restart Apache" notify: "ServerDensity | Restart Apache"
<VirtualHost *:80> <VirtualHost *:80>
Include /etc/apache2/{{ apache_conf_dir }}/global-redirect.conf Include /etc/apache2/{{ apache_conf_dir|default('conf-available') }}/global-redirect.conf
ServerName {{ inventory_hostname }} ServerName {{ inventory_hostname }}
<Location /server-status> <Location /server-status>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment