You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-roles/nginx
Jérémy Lecour ee21973371
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2777|524|2253|2462|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
Use FQCN
Fully Qualified Collection Name
2 months ago
..
defaults nginx: no more "minimal" mode, but the package remains customizable. 2 years ago
files whitespace 1 year ago
handlers Use FQCN 2 months ago
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2 years ago
tasks Use FQCN 2 months ago
templates nginx: Add snippet for custom server block config. 1 year ago
tests Add serverspec test to nginx role 6 years ago
.kitchen.yml Kitchen: Change base image to evolix/ansible 6 years ago
README.md apache/nginx/fail2ban: mention ip_whitelist.yml in README.md 5 years ago

README.md

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.

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.