mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
freepbx_dependencies.yml: Run 'a2enmod rewrite' via Ansible, for Apache
This commit is contained in:
parent
5e93f3b267
commit
a4270d94ce
1 changed files with 24 additions and 16 deletions
|
@ -36,20 +36,28 @@
|
||||||
# state: present
|
# state: present
|
||||||
# when: php_version is version('8.0', '<')
|
# when: php_version is version('8.0', '<')
|
||||||
|
|
||||||
- name: "FreePBX - Install Apache packages: {{ apache_service }}, libapache2-mod-php, libapache2-mpm-itk - if not pbx_try_nginx"
|
|
||||||
|
block:
|
||||||
|
|
||||||
|
- name: "FreePBX - Install Apache packages: {{ apache_service }}, libapache2-mod-php, libapache2-mpm-itk - if not pbx_try_nginx"
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- "{{ apache_service }}" # 2021-08-07: Install apache2 directly, as we prepare to deprecate roles/httpd
|
- "{{ apache_service }}" # 2021-08-07: Install apache2 directly, as we prepare to deprecate roles/httpd
|
||||||
- libapache2-mod-php # NOTE duplication: roles/httpd/tasks.install.yml installed libapache2-mod-php{{ php_version }} ostensibly for "Elgg, Moodle, etc"
|
- libapache2-mod-php # NOTE duplication: roles/httpd/tasks.install.yml installed libapache2-mod-php{{ php_version }} ostensibly for "Elgg, Moodle, etc"
|
||||||
- libapache2-mpm-itk # To serve FreePBX through a VirtualHost as asterisk user (#2914: Is this possible via NGINX?)
|
- libapache2-mpm-itk # To serve FreePBX through a VirtualHost as asterisk user (#2914: Is this possible via NGINX?)
|
||||||
when: not pbx_try_nginx
|
|
||||||
|
|
||||||
# - name: 'Enable 5 Apache modules, as with "a2enmod" command: headers, proxy, proxy_html, proxy_http, rewrite (for http://box/kiwix, http://box/kolibri, http://box/nodered, etc)'
|
- name: 'Enable Apache module, as with "a2enmod" command: rewrite'
|
||||||
# apache2_module:
|
apache2_module:
|
||||||
# name: "{{ item }}"
|
name: rewrite
|
||||||
# with_items:
|
|
||||||
# - headers
|
# - name: 'Enable 5 Apache modules, as with "a2enmod" command: headers, proxy, proxy_html, proxy_http, rewrite (for http://box/kiwix, http://box/kolibri, http://box/nodered, etc)'
|
||||||
# - proxy
|
# apache2_module:
|
||||||
# - proxy_html
|
# name: "{{ item }}"
|
||||||
# - proxy_http
|
# with_items:
|
||||||
# - rewrite
|
# - headers
|
||||||
|
# - proxy
|
||||||
|
# - proxy_html
|
||||||
|
# - proxy_http
|
||||||
|
# - rewrite
|
||||||
|
|
||||||
|
when: not pbx_try_nginx
|
||||||
|
|
Loading…
Reference in a new issue