Better way to get php version
parent
2e4bcd0996
commit
a96c542c9e
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue