mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
14 lines
725 B
YAML
14 lines
725 B
YAML
- name: Fail if nodejs_version is incorrect
|
|
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
|
|
|
|
- name: Install asterisk
|
|
include_tasks: asterisk.yml
|
|
when: internet_available and ((is_debian and ansible_distribution_major_version == "9") or is_ubuntu_18) and pbx_install and (not pbx_installed) and (nodejs_version == "10.x")
|
|
|
|
- name: Install freepbx
|
|
include_tasks: freepbx.yml
|
|
when: internet_available and ((is_debian and ansible_distribution_major_version == "9") or is_ubuntu_18) and pbx_install and (not pbx_installed) and (nodejs_version == "10.x")
|