2019-01-19 15:44:59 +00:00
|
|
|
- name: Fail if nodejs_version is incorrect
|
2019-02-09 19:12:32 +00:00
|
|
|
fail:
|
2019-02-09 20:07:39 +00:00
|
|
|
msg: >-
|
2019-02-09 19:12:32 +00:00
|
|
|
PBX: Refusing to install as nodejs_version is not 10.x. Please fix that
|
|
|
|
(looking into /etc/iiab/local_vars.yml and
|
|
|
|
/opt/iiab/iiab/vars/default_vars.yml) and then rerun.
|
2019-01-18 07:12:34 +00:00
|
|
|
when: pbx_install and (nodejs_version != "10.x")
|
|
|
|
|
2019-01-17 06:47:59 +00:00
|
|
|
#- name: TODO: Check if asterisk and freepbx are already installed
|
|
|
|
|
2019-02-09 20:37:13 +00:00
|
|
|
- debug: # Crazy spacing below is tuned for 80-column screens
|
2019-02-09 20:07:39 +00:00
|
|
|
msg: >-
|
2019-02-09 20:41:10 +00:00
|
|
|
####################################################################WARNING:
|
|
|
|
ONLY UBUNTU 18.04 AND DEBIAN 9 ARE SUPPORTED AS OF FEBRUARY 2019. Please
|
|
|
|
assist Internet-in-a-Box communities worldwide if you can make Asterisk
|
2019-02-09 20:42:36 +00:00
|
|
|
and FreePBX work on other OS's / distros, Thank
|
|
|
|
You! http://FAQ.IIAB.IO ###############################################################################
|
2019-02-09 19:12:32 +00:00
|
|
|
|
|
|
|
- name: Install Asterisk (debuntu)
|
2019-01-17 06:47:59 +00:00
|
|
|
include_tasks: asterisk.yml
|
2019-02-09 19:12:32 +00:00
|
|
|
when: internet_available and pbx_install and (not pbx_installed) and is_debuntu
|
|
|
|
#when: internet_available and pbx_install and (not pbx_installed) and ((is_debian and ansible_distribution_major_version == "9") or is_ubuntu_18)
|
2019-01-17 06:47:59 +00:00
|
|
|
|
2019-02-09 19:44:16 +00:00
|
|
|
- name: Install FreePBX (debuntu)
|
|
|
|
include_tasks: freepbx.yml
|
2019-02-09 19:12:32 +00:00
|
|
|
when: internet_available and pbx_install and (not pbx_installed) and is_debuntu
|
|
|
|
#when: internet_available and pbx_install and (not pbx_installed) and ((is_debian and ansible_distribution_major_version == "9") or is_ubuntu_18)
|