Use Debian repo version of nginx
/ terraform (push) Successful in 1m3s Details
/ ansible (push) Failing after 1m53s Details

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:
Jake Howard 2024-01-04 14:17:36 +00:00
parent 57ad143268
commit c8211d4756
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 6 additions and 10 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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