mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Interim hack to start Asterisk til ansible-core 2.15.x recovers
This commit is contained in:
parent
c6316c1df7
commit
822c4c2e08
1 changed files with 22 additions and 8 deletions
|
@ -232,16 +232,30 @@
|
|||
dest: /etc/asterisk/cdr_mysql.conf
|
||||
|
||||
|
||||
# 2023-05-21: Asterisk is normally OFF at this point (but that doesn't matter, either way!)
|
||||
- name: FreePBX - 2-step install - FAST W/ GITHUB (OR freepbx-16.0-latest.tgz CAN TAKE 3-12 MIN OR LONGER!)
|
||||
command: "{{ item }}"
|
||||
# 2023-05-21: Asterisk is in fact normally OFF at this point (shouldn't matter!)
|
||||
# - name: FreePBX - Spawn 'nohup ./start_asterisk start' in {{ freepbx_src_dir }}
|
||||
# command: nohup ./start_asterisk start
|
||||
# args:
|
||||
# chdir: "{{ freepbx_src_dir }}"
|
||||
|
||||
# 2023-06-21: Interim use of 'nohup' didn't quite solve ansible 2.15.x
|
||||
# regression ansible/ansible#80863, which led to PR's #3588 and #3604.
|
||||
- name: FreePBX - INTERIM USE OF 'systemctl start asterisk' TIL ANSIBLE FIXES 2.15.x REGRESSION ansible/ansible#80863 -- 'nohup ./start_asterisk start' ALSO DOESN'T WORK WITH 2.15.0 AND 2.15.1
|
||||
systemd:
|
||||
name: asterisk
|
||||
state: started
|
||||
#enabled: yes
|
||||
|
||||
# 2023-06-21: Commands to try to see if Asterisk has started & stabilized?
|
||||
# pidof asterisk
|
||||
# /usr/sbin/asterisk -rx 'core show version'
|
||||
# journalctl -eu asterisk
|
||||
|
||||
- name: FreePBX - WAIT 5 SECONDS TO SIMULATE './start_asterisk start' (REQUIRED DUE TO ABOVE ANSIBLE BUG) THEN install FreePBX to {{ freepbx_install_dir }} - FAST W/ GITHUB (OR freepbx-16.0-latest.tgz CAN TAKE 3-12 MIN OR LONGER!)
|
||||
shell: sleep 5 && ./install -n --webroot {{ freepbx_install_dir }} --dbuser {{ asterisk_db_user }} --dbpass {{ asterisk_db_password }}
|
||||
args:
|
||||
chdir: "{{ freepbx_src_dir }}"
|
||||
creates: "{{ freepbx_install_dir }}" # /var/www/html/freepbx
|
||||
with_items:
|
||||
- nohup ./start_asterisk start # 2023-06-20: Interim use of 'nohup' until ansible 2.15.x solves regression ansible/ansible#80863
|
||||
- ./install -n --webroot {{ freepbx_install_dir }} --dbuser {{ asterisk_db_user }} --dbpass {{ asterisk_db_password }}
|
||||
# - ./install -n --webroot {{ freepbx_install_dir }} --dbuser {{ asterisk_db_user }} --dbpass {{ asterisk_db_password }} --dbname {{ asterisk_db_dbname }} --cdrdbname {{ asterisk_db_cdrdbname }}
|
||||
#creates: "{{ freepbx_install_dir }}" # /var/www/html/freepbx
|
||||
|
||||
|
||||
# 2022-05-25 BACKGROUND: https://github.com/iiab/iiab/pull/3229#issuecomment-1138061460
|
||||
|
|
Loading…
Reference in a new issue