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

use value not default for alternatives

parent b821ec72
No related branches found
No related tags found
No related merge requests found
Pipeline #27183 passed
......@@ -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:
......
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