Skip to content
Snippets Groups Projects
Commit c243fd11 authored by Chris Croome's avatar Chris Croome
Browse files

more tests

parent 25f0a2b2
No related branches found
No related tags found
1 merge request!2MPM switching and TLS 1.3
Pipeline #9765 passed
......@@ -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:
......
......@@ -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
......
......@@ -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
......
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