Better way to get php version

pull/5/head
Emilien Mantel 2015-07-27 18:14:25 +02:00
parent 2e4bcd0996
commit a96c542c9e
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
when: php_install_xdebug when: php_install_xdebug
- name: SHELL | Get PHP version on apt - 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 register: php_apt_version
changed_when: false changed_when: false