Use Debian repo version of nginx
It's older, and doesn't have `stream` compiled in, but the repo one can't link to any of the installed modules, which is a non-starter.
This commit is contained in:
parent
57ad143268
commit
c8211d4756
3 changed files with 6 additions and 10 deletions
|
@ -18,7 +18,5 @@ roles:
|
|||
version: 1.0.0
|
||||
- src: dokku_bot.ansible_dokku
|
||||
version: v2022.10.17
|
||||
- src: nginxinc.nginx
|
||||
version: 0.24.1
|
||||
- src: geerlingguy.certbot
|
||||
version: 5.1.0
|
||||
|
|
|
@ -5,6 +5,10 @@ error_log /var/log/nginx/error.log;
|
|||
load_module /usr/lib/nginx/modules/ngx_http_brotli_filter_module.so;
|
||||
load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;
|
||||
|
||||
{% if ansible_os_family != 'Archlinux'%}
|
||||
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
|
||||
{% endif %}
|
||||
|
||||
pcre_jit on;
|
||||
|
||||
events {
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
- name: Install nginx
|
||||
import_role:
|
||||
name: nginxinc.nginx
|
||||
when: ansible_os_family != 'Archlinux'
|
||||
become: true
|
||||
|
||||
- name: Install nginx (mainline) on Arch
|
||||
package:
|
||||
name: nginx-mainline
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
name: "{{ 'nginx-mainline' if ansible_os_family == 'Archlinux' else 'nginx' }}"
|
||||
become: true
|
||||
|
||||
- name: Install nginx modules
|
||||
|
@ -16,6 +9,7 @@
|
|||
loop:
|
||||
- libnginx-mod-http-headers-more-filter
|
||||
- libnginx-mod-http-brotli-filter
|
||||
- libnginx-mod-stream
|
||||
when: ansible_os_family != 'Archlinux'
|
||||
become: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue