mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-10-01 04:39:24 +02:00
Change php_version var to php_installed_version.
This commit is contained in:
parent
4d89ae1df7
commit
714e23e92e
@ -45,15 +45,15 @@
|
|||||||
when: php_install_from_source == true
|
when: php_install_from_source == true
|
||||||
|
|
||||||
- name: Check the installed version of PHP.
|
- name: Check the installed version of PHP.
|
||||||
shell: '{{ php_executable }} -r "echo PHP_VERSION;"'
|
shell: '{{ php_executable }} -r "echo php_installed_version;"'
|
||||||
register: php_version
|
register: php_installed_version
|
||||||
changed_when: false
|
changed_when: false
|
||||||
always_run: yes
|
always_run: yes
|
||||||
|
|
||||||
- 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 | version_compare('5.5', operator='lt') }}"
|
when: "{{ php_installed_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