From faec81a2f5ce1f6ecc6d7a7e18cac0d254849acf Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Wed, 20 Apr 2022 10:05:32 +0100 Subject: [PATCH] debug test --- tasks/checks.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/checks.yml b/tasks/checks.yml index 2f5fc20..c63febf 100644 --- a/tasks/checks.yml +++ b/tasks/checks.yml @@ -24,6 +24,13 @@ - ansible_distribution_release is regex("^stretch|buster|bullseye|bookworm|focal|bionic|jammy$") fail_msg: "The Linux distro {{ ansible_distribution }} {{ ansible_distribution_release }} is not supported by this role" + - name: Generate an array of existing PHP versions + set_fact: + php_versions_existing: "{{ ansible_local.phpquery.versions.key() }}" + + - name: debug fail + fail: + - name: Generate an array of existing PHP versions set_fact: php_versions_existing: "{{ php_versions_existing | default([]) }} + [ '{{ existing_version.key }}' ]" -- GitLab