Install modules OK

pull/35/head
Emilien Mantel 2017-12-14 19:55:22 +01:00
parent 45886ca9cc
commit d3d9b5c296
5 changed files with 5 additions and 10 deletions

View File

@ -54,7 +54,7 @@ FreeBSD:
- `nginx_events_*`: all variables in events block
- `nginx_http_*`: all variables in http block
- `nginx_custom_http`: instructions list (will put data in `/etc/nginx/conf.d/custom.conf`)
- `nginx_dyn_modules`: dynamic module list to load
- `nginx_module_packages`: package list module to install
About modules
-------------

View File

@ -107,7 +107,7 @@ nginx_ssl_pairs: []
#
# Dynamic modules
#
nginx_dyn_modules: []
nginx_module_packages: []
#
# Diffie-Hellman

View File

@ -29,10 +29,9 @@
- name: APT | Install nginx modules
apt:
pkg: "libnginx-mod-{{ item | replace('_', '-') }}"
pkg: "{{ item }}"
state: present
with_items: "{{ nginx_dyn_modules }}"
when: ansible_distribution == 'Debian'
with_items: "{{ nginx_module_packages }}"
- name: APT | Install python-passlib
apt:

View File

@ -12,10 +12,6 @@
include: prepare.yml
tags: ['nginx::site', 'nginx::ssl']
- name: INCLUDE | Manage dynamic modules
include: dyn_modules.yml
when: nginx_version.stdout | version_compare('1.9.11', 'ge')
- name: INCLUDE | Install
include: config.yml

View File

@ -29,7 +29,7 @@
# Role vars
nginx_worker_processes: 1 # Ansible+FreeBSD can't detect CPU number
nginx_apt_package: 'nginx-extras'
nginx_dyn_modules: ['http_geoip', 'http_headers_more']
nginx_module_packages: ['libnginx-mod-http-headers-more-filter']
nginx_upstreams:
- name: 'test'
servers: