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
c243fd11
Commit
c243fd11
authored
5 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
more tests
parent
25f0a2b2
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
#9765
passed
5 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/checks.yml
+6
-0
6 additions, 0 deletions
tasks/checks.yml
tasks/main.yml
+1
-1
1 addition, 1 deletion
tasks/main.yml
tasks/mpm.yml
+33
-2
33 additions, 2 deletions
tasks/mpm.yml
with
40 additions
and
3 deletions
tasks/checks.yml
+
6
−
0
View file @
c243fd11
...
...
@@ -162,6 +162,12 @@
-
name
:
Set a fact for the enabled MPM
set_fact
:
apache_mpm_loaded
:
"
mpm_{{
apache_mpm_check.stdout
|
trim
}}"
when
:
apache_mpm_check.stdout != "invalid"
-
name
:
Set a fact for the enabled MPM
set_fact
:
apache_mpm_loaded
:
"
none"
when
:
apache_mpm_check.stdout == "invalid"
-
name
:
Debug the enabled MPM
debug
:
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
1
−
1
View file @
c243fd11
...
...
@@ -33,7 +33,7 @@
-
name
:
Include MPM switching tasks
include_tasks
:
mpm.yml
when
:
apache_mpm_loaded not in apache_mods_enabled
when
:
(
apache_mpm_loaded not in apache_mods_enabled
) or ( apache_mpm_loaded == "none" )
-
name
:
Apache config available
include_tasks
:
config.yml
...
...
This diff is collapsed.
Click to expand it.
tasks/mpm.yml
+
33
−
2
View file @
c243fd11
...
...
@@ -22,7 +22,9 @@
state
:
present
ignore_configcheck
:
true
when
:
( apache_mpm_loaded == "mpm_prefork" ) and ( "mpm_event" in apache_mods_enabled )
when
:
-
( apache_mpm_loaded == "mpm_prefork" ) or apache_mpm_loaded == "none" )
-
( "mpm_event" in apache_mods_enabled )
tags
:
-
apache
...
...
@@ -41,7 +43,36 @@
state
:
present
ignore_configcheck
:
true
when
:
( apache_mpm_loaded == "mpm_event" ) and ( "mpm_prefork" in apache_mods_enabled )
when
:
-
( apache_mpm_loaded == "mpm_event" ) or ( apache_mpm_loaded == "none" )
-
( "mpm_prefork" in apache_mods_enabled )
tags
:
-
apache
-
name
:
Re-check the MPM
block
:
-
name
:
Check the enabled MPM
command
:
a2query -M
check_mode
:
false
changed_when
:
false
register
:
apache_mpm_check
-
name
:
Debug the enabled MPM
debug
:
msg
:
"
{{
apache_mpm_check.stdout
}}"
verbosity
:
2
-
name
:
Set a fact for the enabled MPM
set_fact
:
apache_mpm_loaded
:
"
mpm_{{
apache_mpm_check.stdout
|
trim
}}"
when
:
apache_mpm_check.stdout != "invalid"
-
name
:
Fail if non MPM loaded
fail
:
msg
:
"
No
Apache
MPM
loaded"
when
:
apache_mpm_check.stdout == "invalid"
tags
:
-
apache
...
...
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