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
624c3d2a
Commit
624c3d2a
authored
5 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
additional checks added
parent
64b8d237
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
#9760
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/checks.yml
+35
-10
35 additions, 10 deletions
tasks/checks.yml
with
35 additions
and
10 deletions
tasks/checks.yml
+
35
−
10
View file @
624c3d2a
...
...
@@ -38,20 +38,32 @@
when
:
( apache_phpquery_path is defined ) and ( apache_phpquery_path.stdout == "/usr/sbin/phpquery" )
-
name
:
Register the loaded modules
command
:
a2query -m
check_mode
:
false
changed_when
:
false
register
:
apache_modules_check
-
name
:
Check loaded modules
block
:
-
name
:
Register the loaded modules
command
:
a2query -m
check_mode
:
false
changed_when
:
false
register
:
apache_modules_check
rescue
:
-
name
:
No mod enabled
set_fact
:
apache_mod_loaded
:
[]
when
:
'
"No
module
matches"
in
apache_conf_check.stderr'
-
name
:
Debug the loaded modules
debug
:
var
:
apache_modules_check.stdout_lines
verbosity
:
2
when
:
apache_modules_check.stdout is defined
-
name
:
Set an array of the loaded modules
set_fact
:
apache_modules_loaded
:
"
{{
apache_modules_loaded
|
default([])
+
[
line.split('
')[0]
]
}}"
when
:
apache_modules_check.stdout is defined
loop
:
"
{{
apache_modules_check.stdout_lines
}}"
loop_control
:
loop_var
:
line
...
...
@@ -62,20 +74,32 @@
var
:
apache_modules_loaded
verbosity
:
2
-
name
:
Register the loaded conf
command
:
a2query -c
check_mode
:
false
changed_when
:
false
register
:
apache_conf_check
-
name
:
Check loaded conf
block
:
-
name
:
Register the loaded conf
command
:
a2query -c
check_mode
:
false
changed_when
:
false
register
:
apache_conf_check
rescue
:
-
name
:
No conf enabled
set_fact
:
apache_conf_loaded
:
[]
when
:
'
"No
conf
matches"
in
apache_conf_check.stderr'
-
name
:
Debug the loaded conf
debug
:
var
:
apache_conf_check.stdout_lines
verbosity
:
2
when
:
apache_conf_check.stdout is defined
-
name
:
Set an array of the loaded conf
set_fact
:
apache_conf_loaded
:
"
{{
apache_conf_loaded
|
default([])
+
[
line.split('
')[0]
]
}}"
when
:
apache_conf_check.stdout is defined
loop
:
"
{{
apache_conf_check.stdout_lines
}}"
loop_control
:
loop_var
:
line
...
...
@@ -106,6 +130,7 @@
debug
:
var
:
apache_sites_check.stdout_lines
verbosity
:
2
when
:
apache_sites_check.stdout is defined
-
name
:
Set an array of the loaded sites
set_fact
:
...
...
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