Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
apache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
apache
Commits
f228eb08
Commit
f228eb08
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#3
Always disable default site if required
parent
f80ee066
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/apache.yml
+16
-0
16 additions, 0 deletions
tasks/apache.yml
with
16 additions
and
0 deletions
tasks/apache.yml
+
16
−
0
View file @
f228eb08
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment