mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
PBX Fail if proper nodejs version is not set
This commit is contained in:
parent
c31046b46a
commit
3475982041
2 changed files with 3 additions and 8 deletions
|
@ -1,3 +1,3 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: nodejs, tags: ['nodejs'], when: pbx_install and (nodejs_version == "10.x") and (not sugarizer_install)}
|
- { role: nodejs, tags: ['nodejs'], when: pbx_install and (nodejs_version == "10.x")}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
- name: Throw warning if sugarizer_install is true
|
|
||||||
debug:
|
|
||||||
msg: Refusing to install as sugarizer_install is true. Fix that and rerun.
|
|
||||||
when: pbx_install and sugarizer_install
|
|
||||||
|
|
||||||
- name: Throw warning if nodejs_version is incorrect
|
- name: Throw warning if nodejs_version is incorrect
|
||||||
debug:
|
fail:
|
||||||
msg: Refusing to install as nodejs_version is not 10.x. Fix that and rerun.
|
msg: PBX: Refusing to install as nodejs_version is not 10.x. Fix that and rerun.
|
||||||
when: pbx_install and (nodejs_version != "10.x")
|
when: pbx_install and (nodejs_version != "10.x")
|
||||||
|
|
||||||
#- name: TODO: Check if asterisk and freepbx are already installed
|
#- name: TODO: Check if asterisk and freepbx are already installed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue