mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
parent
db2ef33fea
commit
8d943d97d9
1 changed files with 16 additions and 10 deletions
|
@ -134,7 +134,7 @@
|
||||||
- ./start_asterisk start
|
- ./start_asterisk start
|
||||||
- ./install -n --webroot {{ freepbx_install_dir }} --dbuser {{ asterisk_db_user }} --dbpass {{ asterisk_db_password }} --dbname {{ asterisk_db_dbname }} --cdrdbname {{ asterisk_db_cdrdbname }}
|
- ./install -n --webroot {{ freepbx_install_dir }} --dbuser {{ asterisk_db_user }} --dbpass {{ asterisk_db_password }} --dbname {{ asterisk_db_dbname }} --cdrdbname {{ asterisk_db_cdrdbname }}
|
||||||
|
|
||||||
- name: "Does 'fwconsole stop' gracefully stop both Asterisk processes, to avoid #2915 \"Unable to run Pre-Asterisk hooks, because Asterisk is already running\" in 'journalctl -u freepbx' logs?"
|
- name: "2021-08-06: Does 'fwconsole stop' gracefully stop both Asterisk processes, to avoid #2915 \"Unable to run Pre-Asterisk hooks, because Asterisk is already running\" in 'journalctl -u freepbx' logs?"
|
||||||
command: fwconsole stop
|
command: fwconsole stop
|
||||||
# command: "{{ item }}"
|
# command: "{{ item }}"
|
||||||
# with_items:
|
# with_items:
|
||||||
|
@ -151,6 +151,16 @@
|
||||||
# # - fwconsole reload
|
# # - fwconsole reload
|
||||||
# # - fwconsole restart
|
# # - fwconsole restart
|
||||||
|
|
||||||
|
# 2021-08-06: This stanza might be removed in future, if Asterix/FreePBX fix
|
||||||
|
# this install glitch in a future release? FYI #2908, #2912, #2913 attempts
|
||||||
|
# didn't work. This workaround helps: https://github.com/iiab/iiab/pull/2915
|
||||||
|
# - name: FreePBX - Run 'systemctl restart freepbx' TWICE (THIS IS 1 OF 2) to get past 'systemctl status freepbx' glitch "Unable to run Pre-Asterisk hooks, because Asterisk is already running"
|
||||||
|
# systemd:
|
||||||
|
# daemon_reload: yes
|
||||||
|
# name: freepbx
|
||||||
|
# enabled: yes
|
||||||
|
# state: restarted
|
||||||
|
|
||||||
# - name: 'FreePBX - fix file permissions for NGINX: /etc/freepbx.conf (0644), /var/log/asterisk/freepbx.log (0666)'
|
# - name: 'FreePBX - fix file permissions for NGINX: /etc/freepbx.conf (0644), /var/log/asterisk/freepbx.log (0666)'
|
||||||
# file:
|
# file:
|
||||||
# #state: file
|
# #state: file
|
||||||
|
@ -180,15 +190,11 @@
|
||||||
src: freepbx.service
|
src: freepbx.service
|
||||||
dest: /etc/systemd/system/
|
dest: /etc/systemd/system/
|
||||||
|
|
||||||
# 2021-08-06: This stanza might be removed in future, if Asterix/FreePBX fix
|
- name: "2021-08-06: Try \"$amp_conf['AMPASTERISKWEBUSER'] = 'www-data';\" in /etc/freepbx.conf for #2916 registration cron fix ?'"
|
||||||
# the install glitch in a future release. FYI #2908, #2912, #2913 attempts
|
lineinfile:
|
||||||
# didn't work. This one did: https://github.com/iiab/iiab/pull/2915
|
path: /etc/freepbx.conf
|
||||||
# - name: FreePBX - Run 'systemctl restart freepbx' TWICE (THIS IS 1 OF 2) to get past 'systemctl status freepbx' glitch "Unable to run Pre-Asterisk hooks, because Asterisk is already running"
|
insertafter: '^<\?php$' # Match exact line '<?php'
|
||||||
# systemd:
|
line: "$amp_conf['AMPASTERISKWEBUSER'] = 'www-data';"
|
||||||
# daemon_reload: yes
|
|
||||||
# name: freepbx
|
|
||||||
# enabled: yes
|
|
||||||
# state: restarted
|
|
||||||
|
|
||||||
|
|
||||||
# - name: FreePBX - Install /etc/apache2/sites-available/freepbx.conf from template ({{ apache_user }}:{{ apache_user }}, 0644 by default)
|
# - name: FreePBX - Install /etc/apache2/sites-available/freepbx.conf from template ({{ apache_user }}:{{ apache_user }}, 0644 by default)
|
||||||
|
|
Loading…
Reference in a new issue