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:
parent
5e98382e30
commit
b8fb6fd60d
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue