2014-05-20 21:59:25 +02:00
|
|
|
{% set state = 'cli' %}
|
|
|
|
{% include "php/ng/installed.jinja" %}
|
2017-05-05 17:48:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
php_{{ phpng_version }}_link:
|
|
|
|
alternatives.set:
|
|
|
|
- name: php
|
|
|
|
- path: /usr/bin/php{{ phpng_version }}
|
|
|
|
- require_in:
|
|
|
|
- pkg: php_install_{{ state }}
|
|
|
|
- onlyif:
|
|
|
|
- which php
|
|
|
|
- test {{ current_php }} != $(which php{{ phpng_version }})
|