Skip to content

Commit

Permalink
Skip ImageMagick on EL8
Browse files Browse the repository at this point in the history
  • Loading branch information
bviktor committed Nov 18, 2023
1 parent 0e8be5c commit 60a5b6d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tasks/wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 60a5b6d

Please sign in to comment.