Better way to get php version

This commit is contained in:
Emilien Mantel
2015-07-27 18:14:25 +02:00
parent 2e4bcd0996
commit a96c542c9e

View File

@@ -20,7 +20,7 @@
when: php_install_xdebug
- name: SHELL | Get PHP version on apt
shell: LANG=C apt-cache policy php5 2>&1 | awk '/Candidate:/ { print $2 }'
shell: php -v | head -n 1 | awk '{ print $2 }'
register: php_apt_version
changed_when: false