Commit 2ce7387a authored by Chris Croome's avatar Chris Croome

don't include php tasks when phpversion isn't installed

parent 995bc00a
Pipeline #10707 passed with stage
in 21 seconds
......@@ -64,11 +64,29 @@
include_tasks: "{{ tasks }}"
loop:
- contrib.yml
loop_control:
loop_var: tasks
tags:
- munin
- name: Check is phpquery is available
shell: which phpquery && echo PRESENT || echo ABSENT
register: munin_phpquery
check_mode: false
tags:
- munin
- name: Tasks for PHP plugins included
include_tasks: "{{ tasks }}"
loop:
- opcache.yml
- phpfpm.yml
- phpfpm_multi.yml
loop_control:
loop_var: tasks
when:
- ( munin_phpquery is defined )
- ( munin_phpquery.stdout == "PRESENT"
tags:
- munin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment