ansible-roles/nginx
2016-12-21 16:12:25 +01:00
..
defaults add an nginx role 2016-12-21 16:12:12 +01:00
files add an example for Nginx whitelist 2016-12-21 16:12:24 +01:00
handlers add an nginx role 2016-12-21 16:12:12 +01:00
tasks Nginx: file permissions 2016-12-21 16:12:25 +01:00
templates add an nginx role 2016-12-21 16:12:12 +01:00
README.md clarifies the variables in nginx documentation 2016-12-21 16:12:24 +01:00

nginx

Install Nginx.

Tasks

Everything is in the tasks/main.yml file.

Available variables

Main variables are :

  • nginx_worker_processes : number of worker processes ;
  • nginx_default_redirect_url : URL to redirect to in case of error ;
  • nginx_private_ipaddr_whitelist_present : list of IP addresses to have in the private whitelist ;
  • nginx_private_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.