mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Add checks to install pbx only when sugarizer is absent and nodejs version is correct
This commit is contained in:
parent
9f277653b1
commit
c710632091
1 changed files with 10 additions and 2 deletions
|
@ -1,9 +1,17 @@
|
|||
- name: Throw warning if sugarizer_install is true
|
||||
debug: Refusing to install as sugarizer_install is true. Fix that and rerun.
|
||||
when: pbx_install and sugarizer_install
|
||||
|
||||
- name: Throw warning if sugarizer_install is true
|
||||
debug: 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
|
||||
|
||||
- name: Install asterisk
|
||||
include_tasks: asterisk.yml
|
||||
when: internet_available and is_ubuntu_18 and pbx_install and (not pbx_installed)
|
||||
when: internet_available and is_ubuntu_18 and pbx_install and (not pbx_installed) and (not sugarizer_install) and (nodejs_version == "10.x")
|
||||
|
||||
- name: Install freepbx
|
||||
include_tasks: freepbx.yml
|
||||
when: internet_available and is_ubuntu_18 and pbx_install and (not pbx_installed)
|
||||
when: internet_available and is_ubuntu_18 and pbx_install and (not pbx_installed) and (not sugarizer_install) and (nodejs_version == "10.x")
|
||||
|
|
Loading…
Reference in a new issue