diff --git a/roles/pbx/tasks/asterisk.yml b/roles/pbx/tasks/asterisk.yml index 2830f878d..63059695b 100644 --- a/roles/pbx/tasks/asterisk.yml +++ b/roles/pbx/tasks/asterisk.yml @@ -2,6 +2,9 @@ #- name: Asterisk - Install dependencies # include: asterisk_dependencies.yml +# BEWARE: 'systemctl is-active asterix' falsely reports 'inactive' even when systemd +# is compiled in below! FWIW: /opt/iiab/asterisk/contrib/systemd/asterisk.service + - name: Asterisk - Install package 'libsystemd-dev' so Asterisk compiles in imperfect-but-improving systemd support -- so '/* #undef HAVE_SYSTEMD */' becomes '#undef HAVE_SYSTEMD' in /opt/iiab/asterisk/include/asterisk/autoconfig.h -- per https://community.asterisk.org/t/systemctl-start-asterisk-is-fail-with-timeout/81123/3 and https://github.com/asterisk/asterisk/blob/master/contrib/systemd/asterisk.service package: name: libsystemd-dev diff --git a/roles/pbx/tasks/freepbx.yml b/roles/pbx/tasks/freepbx.yml index e6c781f1d..96e227fbc 100644 --- a/roles/pbx/tasks/freepbx.yml +++ b/roles/pbx/tasks/freepbx.yml @@ -59,8 +59,8 @@ # state: stopped # 2021-08-05: Asterisk's systemd / systemctl support is getting there but Very -# Imperfect (even when compiled in, see the top of asterisk.tml) so let's -# follow the official instructions for now: +# Imperfect (even when compiled in, as a result of package 'libsystemd-dev' at +# top of asterisk.tml) so let's follow the official instructions for now: - name: FreePBX - Run 'update-rc.d -f asterisk remove' similar to 'systemctl disable asterisk' giving FreePBX full control during boot - not strictly required but recommended by https://wiki.freepbx.org/display/FOP/Installing+FreePBX+16+on+Debian+10.9 command: update-rc.d -f asterisk remove