- 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
- name:Install & Enable chan_dongle for Huawei USB modems - if asterisk_chan_dongle
include_tasks:chan_dongle.yml
when:asterisk_chan_dongle
- include_tasks:enable-or-disable.yml
- name:Add 'pbx' variable values to {{ iiab_ini_file }}
ini_file:
path:"{{ iiab_ini_file }}"# /etc/iiab/iiab.ini
section:pbx
option:"{{ item.option }}"
value:"{{ item.value | string }}"
with_items:
- option:name
value:PBX
- option:description
value:'"Full-featured PBX for rural telephony etc, that can integrate with GSM (mobile phone) networks. Based on Asterisk (Voice over IP, SIP telephone numbers) and FreePBX (web-based GUI to administer it)."'