mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-16 10:45:12 +01:00
Merge pull request #66 from pgilad/patch-1
Use ansible jinja filter of version_compare
This commit is contained in:
commit
4d89ae1df7
@ -53,7 +53,7 @@
|
|||||||
- name: Disable opcache if PHP version is < 5.5.
|
- name: Disable opcache if PHP version is < 5.5.
|
||||||
set_fact:
|
set_fact:
|
||||||
php_opcache_enable: 0
|
php_opcache_enable: 0
|
||||||
when: "php_version.stdout.split('.')[0] == '5' and php_version.stdout.split('.')[1] < '5'"
|
when: "{{ php_version.stdout | version_compare('5.5', operator='lt') }}"
|
||||||
|
|
||||||
# Configure PHP.
|
# Configure PHP.
|
||||||
- include: configure.yml
|
- include: configure.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user