1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

use php7.4-fpm with new config file

This commit is contained in:
Jerry Vonau 2021-08-09 14:26:36 -05:00
parent 5e98382e30
commit b8fb6fd60d

View file

@ -35,6 +35,23 @@
- block:
- name: Supply asterisk.conf to /etc/php/{{ php_version }}/fpm/pool.d/ with asterisk as the user
template:
src: asterisk.conf
dest: /etc/php/{{ php_version }}/fpm/pool.d/
when: pbx_enabled
- name: Remove /etc/php/{{ php_version }}/fpm/pool.d/asterisk.conf when disabled
file:
path: /etc/php/{{ php_version }}/fpm/pool.d/asterisk.conf
state: absent
when: not pbx_enabled
- name: Restart 'php7.4-fpm' systemd service
systemd:
name: php7.4-fpm
state: restarted
- name: Enable http://box/freepbx via NGINX, by installing {{ nginx_conf_dir }}/freepbx-nginx.conf from template
template:
src: freepbx-nginx.conf.j2