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

Debug test

parent cafb86ac
No related branches found
No related tags found
1 merge request!1Merge Sury
Pipeline #20856 failed
---
- name: PHP SAPI absent checks
block:
- name: "Check that SAPI is not set to be present when PHP {{ version }} is set to be removed"
assert:
that:
- sapi.value.state == "absent"
fail_msg: "SAPI {{ sapi.key }} is not set to be absent for PHP {{ version }}, yet PHP {{ version }} is set to be removed."
loop: "{{ php_versions[version].sapis | dict2items }}"
loop_control:
loop_var: sapi
label: "{{ sapi.key }}"
tags:
- php
...
---
- name: Check that no SAPI modules are set to be enabled and disabled at the same time
- name: PHP SAPI module checks
block:
- name: "Loop through the modules_enabled for SAPI {{ sapi.key }} for PHP {{ version }} to check that none are also set to be disabled"
assert:
that:
- mod not in sapi.value.modules_disabled
loop: "{{ sapi.value.modules_enabled }}"
- name: "Check that no SAPI modules are set to be enabled and disabled at the same time for PHP {{ version }}"
include_tasks: sapi_module_checks.yml
loop: "{{ php_versions[version].sapis | dict2items }}"
loop_control:
loop_var: mod
label: "{{ mod }}"
loop_var: sapi
label: "{{ sapi.key }}"
when:
- ( sapi.value.state is defined ) and ( sapi.value.state == "present" )
- ( sapi.value.modules_enabled is defined ) and ( sapi.value.modules_enabled != [] )
- ( sapi.value.modules_disabled is defined ) and ( sapi.value.modules_disabled != [] )
......
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