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

#3 Always disable default site if required

parent f80ee066
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,22 @@
- "Apache | Restart Apache"
- "Apache | Checkout htdocs for our site(s)"
- name: "Apache | Disable the default site"
command: a2dissite {{ item }}
with_items:
- 'default'
- '{{ apache_conf_default_prefix }}default'
ignore_errors: true
when: apache_server_default == "no"
- name: "Apache | Disable the default ssl site"
command: a2dissite {{ item }}
with_items:
- 'default-ssl'
- '{{ apache_conf_default_prefix }}default-ssl'
ignore_errors: true
when: apache_server_default_ssl == "no"
- name: "Apache | Enable the default site"
command: a2ensite {{ apache_conf_default_prefix }}default creates=/etc/apache2/sites-enabled/{{ apache_conf_default_prefix }}default{{ apache_conf_ext }}
when: apache_server_default == "yes"
......
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