1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

pbx - php7.4 only

This commit is contained in:
Jerry Vonau 2023-04-02 01:04:00 -05:00
parent 26327ddd05
commit 31a1664483
2 changed files with 7 additions and 0 deletions

View file

@ -21,6 +21,8 @@
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
# Allows testing on newer php versions when present in local_vars.yml
# pbx_php74_override
asterisk_url: https://downloads.asterisk.org/pub/telephony/asterisk
asterisk_src_file: asterisk-20-current.tar.gz
asterisk_src_dir: "{{ iiab_base }}/asterisk" # /opt/iiab

View file

@ -21,6 +21,11 @@
- block:
- name: EXIT 'pbx' ROLE, if 'php_version' doesn't shows "7.4"
fail: # FORCE IT RED THIS ONCE!
msg: FreePBX 16 requirs PHP 7.4 and is not available.
when: not (php_version == "7.4") and pbx_php74_override is undefined
- name: Install PBX if pbx_installed is not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: install.yml
when: pbx_installed is undefined