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

debug test

parent 12d24802
No related branches found
No related tags found
1 merge request!1Merge Sury
Pipeline #20529 failed
......@@ -71,6 +71,14 @@
var: php_versions_remove
verbosity: 2
- name: Include SAPI checks for PHP versions to install
include_tasks: sapi_checks.yml
loop: "{{ php_versions_install }}"
loop_control:
loop_var: version
label: "{{ version }}"
when: ( php_versions_install is defined ) and ( php_versions_install != [] )
- name: Debug fail
fail:
......
---
- name: PHP SAPI checks
block:
- name: Generate an array of existing PHP SAPIs
set_fact:
php_existing_sapis: "{{ php_existing_sapis | default([]) }} + [ '{{ existing_sapi.key }}' ]"
when:
- ansible_local.phpquery.versions[version] is defined
- existing_sapi.value.state == "present"
loop: "{{ ansible_local.phpquery.versions[version] | dict2items }}"
loop_control:
loop_var: existing_sapi
label: "{{ existing_sapi.key }}"
- name: Debug existing PHP SAPIs
debug:
ver: php_existing_sapis
when: php_existing_sapis is defined
tags:
- php
...
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