Remove php8.0-json for Debian builds.

This commit is contained in:
Brian Wells 2021-03-18 15:10:27 -05:00
parent e82190e1b0
commit 24cff502be
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@
- "{{ role_path }}/vars/{{ ansible_os_family }}.yml"
- "{{ role_path }}/vars/{{ ansible_os_family }}-php{{ php_version }}.yml"
- name: Remove missing JSON extension for PHP 8.0 (included by default)
set_fact: "{{ __php_packages }}={{ __php_packages | reject('search','php8.0-json') | list }}"
when: __php_packages is defined and php_version == "8.0"
- name: Define PHP variables.
set_fact: "{{ item.key }}={{ lookup('vars', item.value) }}"
when: