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
@ -18,7 +18,5 @@ roles:
|
|||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
- src: dokku_bot.ansible_dokku
|
- src: dokku_bot.ansible_dokku
|
||||||
version: v2022.10.17
|
version: v2022.10.17
|
||||||
- src: nginxinc.nginx
|
|
||||||
version: 0.24.1
|
|
||||||
- src: geerlingguy.certbot
|
- src: geerlingguy.certbot
|
||||||
version: 5.1.0
|
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_brotli_filter_module.so;
|
||||||
load_module /usr/lib/nginx/modules/ngx_http_headers_more_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;
|
pcre_jit on;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
- name: Install nginx
|
- name: Install nginx
|
||||||
import_role:
|
|
||||||
name: nginxinc.nginx
|
|
||||||
when: ansible_os_family != 'Archlinux'
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Install nginx (mainline) on Arch
|
|
||||||
package:
|
package:
|
||||||
name: nginx-mainline
|
name: "{{ 'nginx-mainline' if ansible_os_family == 'Archlinux' else 'nginx' }}"
|
||||||
when: ansible_os_family == 'Archlinux'
|
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Install nginx modules
|
- name: Install nginx modules
|
||||||
@ -16,6 +9,7 @@
|
|||||||
loop:
|
loop:
|
||||||
- libnginx-mod-http-headers-more-filter
|
- libnginx-mod-http-headers-more-filter
|
||||||
- libnginx-mod-http-brotli-filter
|
- libnginx-mod-http-brotli-filter
|
||||||
|
- libnginx-mod-stream
|
||||||
when: ansible_os_family != 'Archlinux'
|
when: ansible_os_family != 'Archlinux'
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user