ansible-roles/nginx
Jérémy Lecour 19b6773b18 nginx: adjust apt preferences for backports
All variants of nginx and libssl are used from backports
2017-11-26 12:44:41 +01:00
..
defaults Combine evolix and additional trusted IP addresses 2017-11-15 23:57:58 +01:00
files nginx: adjust apt preferences for backports 2017-11-26 12:44:41 +01:00
handlers Squash: conventions, evolinux, etc-git… 2016-12-21 16:12:30 +01:00
meta Ansible >= 2.2 supported 2017-03-24 14:15:09 +01:00
tasks apache/nginx: remove compatibility mode 2017-10-11 18:13:15 +02:00
templates nginx: fix ip filtering in default vhost 2017-10-12 15:38:07 +02:00
tests Add serverspec test to nginx role 2017-03-09 16:36:25 -05:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md Apache/Nginx: use ipaddr_whitelist 2017-10-07 13:48:04 +02:00

nginx

Install Nginx.

Tasks

Everything is in the tasks/main.yml file.

There are 2 modes : minimal and regular.

The minimal mode is for servers without real web apps, and only access to munin graphs…

The regular mode is for full fledged web services with optimized defaults.

Available variables

Main variables are :

  • nginx_minimal : very basic install and config (default: False) ;
  • nginx_jessie_backports : on Debian Jessie, we can prefer v1.10 from backports (default: False) ;
  • nginx_ipaddr_whitelist_present : list of IP addresses to have in the private whitelist ;
  • nginx_ipaddr_whitelist_absent : list of IP addresses not to have in the whitelist ;
  • nginx_private_htpasswd_present : list of users to have in the private htpasswd ;
  • nginx_private_htpasswd_absent : list of users to not have in the private htpasswd.

The full list of variables (with default values) can be found in defaults/main.yml.