Change php_version var to php_installed_version.

This commit is contained in:
Jeff Geerling 2015-12-14 08:50:57 -06:00
parent 4d89ae1df7
commit 714e23e92e

View File

@ -45,15 +45,15 @@
when: php_install_from_source == true
- name: Check the installed version of PHP.
shell: '{{ php_executable }} -r "echo PHP_VERSION;"'
register: php_version
shell: '{{ php_executable }} -r "echo php_installed_version;"'
register: php_installed_version
changed_when: false
always_run: yes
- name: Disable opcache if PHP version is < 5.5.
set_fact:
php_opcache_enable: 0
when: "{{ php_version.stdout | version_compare('5.5', operator='lt') }}"
when: "{{ php_installed_version.stdout | version_compare('5.5', operator='lt') }}"
# Configure PHP.
- include: configure.yml