diff --git a/roles/pbx/tasks/freepbx.yml b/roles/pbx/tasks/freepbx.yml index b9ab4d0c7..76c0b0292 100644 --- a/roles/pbx/tasks/freepbx.yml +++ b/roles/pbx/tasks/freepbx.yml @@ -215,13 +215,17 @@ dest: /etc/systemd/system/ -- name: Add "$amp_conf['CHECKREFERER'] = false;" to /etc/freepbx.conf #2931 - if pbx_try_nginx" - lineinfile: - path: /etc/freepbx.conf - insertbefore: '^\?>$' # Match exact line '?>' -- BOTTOM OF FILE NEC! - line: "$amp_conf['CHECKREFERER'] = false;" +- name: FreePBX - Run 'fwconsole set CHECKREFERER 0' (0 means false) so 'Submit' button definitively works at http://box/freepbx >> Settings >> Advanced Settings - if pbx_try_nginx -- FYI you can run 'fwconsole set -l' or 'fwconsole set CHECKREFERER' to view FreePBX settings -- FYI /etc/freepbx.conf can completely override FreePBX's stored settings if nec + command: fwconsole set CHECKREFERER 0 # Or/later run 'fwconsole set CHECKREFERER 1' (1 means true) to restore FreePBX's default strict checking. when: pbx_try_nginx +# - name: Add "$amp_conf['CHECKREFERER'] = false;" to /etc/freepbx.conf #2931 - if pbx_try_nginx" +# lineinfile: +# path: /etc/freepbx.conf +# insertbefore: '^\?>$' # Match exact line '?>' -- BOTTOM OF FILE NEC! +# line: "$amp_conf['CHECKREFERER'] = false;" +# when: pbx_try_nginx + # - name: 'FreePBX - fix file permissions for NGINX: /etc/freepbx.conf (0644), /var/log/asterisk/freepbx.log (0666)' # file: # #state: file