1
0
Fork 0
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:
Anish Mangal 2019-01-19 15:34:54 +00:00 committed by root
parent c31046b46a
commit 3475982041
2 changed files with 3 additions and 8 deletions

View file

@ -1,3 +1,3 @@
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")}

View file

@ -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
debug:
msg: Refusing to install as nodejs_version is not 10.x. Fix that and rerun.
fail:
msg: PBX: Refusing to install as nodejs_version is not 10.x. Fix that and rerun.
when: pbx_install and (nodejs_version != "10.x")
#- name: TODO: Check if asterisk and freepbx are already installed