From 60a5b6dc28668f83208fe6bc0b8d3c43e29f5d96 Mon Sep 17 00:00:00 2001 From: Viktor Berke Date: Sat, 18 Nov 2023 03:34:35 +0100 Subject: [PATCH] Skip ImageMagick on EL8 --- tasks/wordpress.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/wordpress.yml b/tasks/wordpress.yml index 03e1a69..80f8a0d 100644 --- a/tasks/wordpress.yml +++ b/tasks/wordpress.yml @@ -12,6 +12,12 @@ - php-json - php-mbstring - "php{% if ansible_pkg_mgr == 'apt' %}{{ noobient_nginx_php_ver }}{% endif %}-intl" - - "php{% if ansible_pkg_mgr == 'dnf' %}-pecl{% else %}{{ noobient_nginx_php_ver }}{% endif %}-imagick" - "php{% if ansible_pkg_mgr == 'dnf' %}-pecl{% else %}{{ noobient_nginx_php_ver }}{% endif %}-zip" register: noobient_nginx_wp_installed + +# Not available on EL8 +- name: Install ImageMagick PHP extension + package: + name: "php{% if ansible_pkg_mgr == 'dnf' %}-pecl{% else %}{{ noobient_nginx_php_ver }}{% endif %}-imagick" + state: latest + when: not (ansible_distribution_major_version == '8' and ansible_os_family == 'RedHat')