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_events_*`: all variables in events block
- `nginx_http_*`: all variables in http block - `nginx_http_*`: all variables in http block
- `nginx_custom_http`: instructions list (will put data in `/etc/nginx/conf.d/custom.conf`) - `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 About modules
------------- -------------

View File

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

View File

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

View File

@ -12,10 +12,6 @@
include: prepare.yml include: prepare.yml
tags: ['nginx::site', 'nginx::ssl'] 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 - name: INCLUDE | Install
include: config.yml include: config.yml

View File

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