From 41a55756276bd70e1b274b58bb700815d3618cbb Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Wed, 12 Oct 2016 18:16:53 +0200 Subject: [PATCH] Dynamic modules starts at version 1.9.11 --- tasks/main.yml | 2 +- templates/etc/nginx/nginx.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index b486859..94c6687 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,7 +11,7 @@ - name: INCLUDE | Manage dynamic modules include: dyn_modules.yml - when: nginx_version.stdout | version_compare('1.9.1', 'ge') + when: nginx_version.stdout | version_compare('1.9.11', 'ge') - name: INCLUDE | Install include: config.yml diff --git a/templates/etc/nginx/nginx.conf.j2 b/templates/etc/nginx/nginx.conf.j2 index c123368..bbb0548 100644 --- a/templates/etc/nginx/nginx.conf.j2 +++ b/templates/etc/nginx/nginx.conf.j2 @@ -5,7 +5,7 @@ user {{ nginx_user }}; worker_processes {{ nginx_worker_processes }}; pid {{ nginx_pid }}; -{% if nginx_version.stdout | version_compare('1.9.1', 'ge') %} +{% if nginx_version.stdout | version_compare('1.9.11', 'ge') %} {% for module in nginx_dyn_modules -%} load_module "modules/ngx_{{ module }}_module.so"; {% endfor %}