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

tests updated

parent be514d69
No related branches found
No related tags found
No related merge requests found
Pipeline #9790 passed
---
# TODO Check that the supplied variables are sane, for example we can't have no
# mpm or we can't have mpm_event and mpm_prefork
- name: Check that only one of mpm_prefork or mpm_events is enabled or disabled
block:
- name: Check that a mpm is enabled
- name: Check that at least one module is in apache_mods_enabled and that either mpm_event or mpm_prefork is enabled
assert:
that:
- ( apache_mods_enabled is defined ) and ( apache_mods_enabled[0] is defined )
- ( "mpm_prefork" in apache_mods_enabled ) or ( "mpm_event" in apache_mods_enabled )
- name: Checks when mpm_event enabled
assert:
that:
- ( "mpm_prefork" not in apache_mods_enabled )
- ( "mpm_event" not in apache_mods_diabled )
- ( "mpm_itk" not in apache_mods_diabled )
- ( "mpm_event" not in apache_mods_disabled )
- ( "mpm_itk" not in apache_mods_disabled )
when: ( "mpm_event" in apache_mods_enabled )
- name: Checks when mpm_prefork enabled
assert:
that:
- ( "mpm_event" not in apache_mods_enabled )
- ( "mpm_prefork" not in apache_mods_diabled )
- ( "mpm_prefork" not in apache_mods_disabled )
when: ( "mpm_prefork" in apache_mods_enabled )
- name: Check that a mpm is enabled
assert:
that:
- ( "mpm_prefork" in apache_mods_enabled ) or ( "mpm_event" in apache_mods_enabled )
- name: Check the Apache version, modules and conf, loaded and enabled
block:
......
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