mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Dynamic module management (closes #23)
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
user {{ nginx_user }};
|
||||
worker_processes {{ nginx_worker_processes }};
|
||||
pid {{ nginx_pid }};
|
||||
{% if nginx_version.stdout | version_compare('1.9.1', 'ge') %}
|
||||
{% for module in nginx_dyn_modules -%}
|
||||
load_module "modules/ngx_{{ module }}_module.so";
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
events {
|
||||
worker_connections {{ nginx_events_worker_connections }};
|
||||
|
||||
Reference in New Issue
Block a user