William Hirigoyen f2eaac0894
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2598|5|2593|5|:-1: Reference build: <a href="">Evolix » ansible-roles » unstable #297</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
nginx: set default server directive in default vhost
2023-07-17 17:31:21 +02:00
defaults nginx: no more "minimal" mode, but the package remains customizable. 2021-02-04 11:31:36 +01:00
files whitespace 2022-03-22 15:31:06 +01:00
handlers Use FQCN 2023-03-20 23:33:19 +01:00
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
tasks force: [yes,no] → force [true,false] 2023-06-28 13:25:30 +02:00
templates nginx: set default server directive in default vhost 2023-07-17 17:31:21 +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 apache/nginx/fail2ban: mention ip_whitelist.yml in 2018-11-02 18:18:22 +01:00


Install Nginx.


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.

An ip_whitelist.yml standalone task file is available to update IP adresses whitelist without rolling the whole role.

Available variables

Main variables are :

  • nginx_minimal : very basic install and config (default: False) ;
  • nginx_backports : we can prefer higher version 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.