jdauphant / ansible-role-nginx

Ansible role to install and manage nginx configuration
655 stars 302 forks source link

Modules are not loaded on Debian Jessie's backported 1.10 #166

Closed pieterlexis closed 7 years ago

pieterlexis commented 7 years ago

As stated in the the NEWS entry:

nginx-common (1.10.2-4) unstable; urgency=medium

  Since nginx 1.9.14 Debian has gradually switched to dynamic loadable modules
  for all third party modules and core modules that support it. For each
  module a new binary package is introduced under the libnginx-mod-* namespace.

  The modules are loadable from all nginx flavors (light,full,extras) and are
  automatically registered by installing a symlink under
  /etc/nginx/modules-enabled/. If you use a modified /etc/nginx/nginx.conf make
  sure to include that directory.

 -- Christos Trochalakis <ctrochalakis@debian.org>  Sun, 22 Jan 2017 12:19:30 +0200

This directory needs to be included on debian when installing from backports (or on the upcoming "stretch" release).

jdauphant commented 7 years ago

Thanks for the information, can you purpose a fix compatible with old version ?

pieterlexis commented 7 years ago

I would suggest a file resource for the modules-enabled directory and always load all the *.conf's from there (on debian systems). This will be backward compatible as well.

jdauphant commented 7 years ago

Thanks, can you submit a pull request?