Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
apache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
webarch
apache
Commits
f199573e
Commit
f199573e
authored
5 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
test with no sites enabled
parent
d71a940d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
MPM switching and TLS 1.3
Pipeline
#9754
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/checks.yml
+16
-5
16 additions, 5 deletions
tasks/checks.yml
with
16 additions
and
5 deletions
tasks/checks.yml
+
16
−
5
View file @
f199573e
...
...
@@ -86,11 +86,21 @@
var
:
apache_conf_loaded
verbosity
:
2
-
name
:
Register the loaded sites
command
:
a2query -s
check_mode
:
false
changed_when
:
false
register
:
apache_sites_check
-
name
:
Check loaded sites
block
:
-
name
:
Register the loaded sites
command
:
a2query -s
check_mode
:
false
changed_when
:
false
register
:
apache_sites_check
rescue
:
-
name
:
No sites enabled
set_fact
:
apache_sites_loaded
:
[]
when
:
'
"No
site
matches"
in
apache_sites_check.stderr'
-
name
:
Debug the loaded sites
debug
:
...
...
@@ -100,6 +110,7 @@
-
name
:
Set an array of the loaded sites
set_fact
:
apache_sites_loaded
:
"
{{
apache_sites_loaded
|
default([])
+
[
line.split('
')[0]
]
}}"
when
:
apache_sites_check.stdout is defined
loop
:
"
{{
apache_sites_check.stdout_lines
}}"
loop_control
:
loop_var
:
line
...
...
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