From a83e45621a8b5479f6a22b22cad709c9b87dfa83 Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Fri, 5 May 2023 08:44:04 +0100 Subject: [PATCH] use value not default for alternatives --- tasks/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/checks.yml b/tasks/checks.yml index 3648e10..3a29e2c 100644 --- a/tasks/checks.yml +++ b/tasks/checks.yml @@ -225,7 +225,7 @@ - name: Set a fact for the default version of PHP ansible.builtin.set_fact: apache_php_update_alt_q: "{{ apache_update_alternatives_query_php.stdout | string | community.general.jc('update_alt_q') }}" - apache_php_version: "{{ apache_update_alternatives_query_php.stdout | string | community.general.jc('update_alt_q') | community.general.json_query('default') | regex_replace('^/usr/bin/php') }}" + apache_php_version: "{{ apache_update_alternatives_query_php.stdout | string | community.general.jc('update_alt_q') | community.general.json_query('value') | regex_replace('^/usr/bin/php') }}" - name: Debug PHP update-alternatives --query php | jc -- update-alt-q ansible.builtin.debug: -- GitLab