From d563c63bfd70146039cd66fc5a7bb8548754cbb9 Mon Sep 17 00:00:00 2001 From: ace Date: Fri, 23 Jul 2021 19:43:35 +0300 Subject: [PATCH] sync configuration for stream module changes in nginx 1.20.x --- inventory/ghp/sample/group_vars/web_proxy.yaml | 1 + roles/nginx/tasks/install.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/inventory/ghp/sample/group_vars/web_proxy.yaml b/inventory/ghp/sample/group_vars/web_proxy.yaml index 6656336..ed167c3 100644 --- a/inventory/ghp/sample/group_vars/web_proxy.yaml +++ b/inventory/ghp/sample/group_vars/web_proxy.yaml @@ -1,5 +1,6 @@ nginx: nginx.conf: | + load_module '/usr/lib64/nginx/modules/ngx_stream_module.so'; user nginx; worker_processes {{ ansible_processor_count }}; error_log /var/log/nginx/error.log debug; diff --git a/roles/nginx/tasks/install.yml b/roles/nginx/tasks/install.yml index 22581dc..bb8209e 100644 --- a/roles/nginx/tasks/install.yml +++ b/roles/nginx/tasks/install.yml @@ -4,6 +4,7 @@ package: name: - nginx + - nginx-mod-stream state: present notify: start nginx register: install_nginx_result