{"repo":"geerlingguy/ansible-role-nginx","free":true,"listed":false,"github":"https://github.com/geerlingguy/ansible-role-nginx","clone":"git clone https://github.com/geerlingguy/ansible-role-nginx.git","description":"Ansible Role - Nginx","language":"Jinja","stars":893,"topics":["ansible","role","nginx","webserver","http","https","balancer"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Ansible Role: Nginx Note: Please consider using the official NGINX Ansible role from NGINX, Inc. Installs Nginx on RedHat/CentOS, Debian/Ubuntu, Archlinux, FreeBSD or OpenBSD servers. This role installs and configures the latest version of Nginx from the Nginx yum repository (on RedHat-based systems), apt (on Debian-based systems), pacman (Archlinux), pkgng (on FreeBSD systems) or pkg add (on OpenBSD systems). You will likely need to do extra setup work after this role has installed Nginx, like adding your own [virtualhost].conf file inside /etc/nginx/conf.d/ , describing the location and options to use for your particular website. Requirements None. Role Variables Available variables are listed below, along with default values (see defaults/main.yml ): nginx listen ipv6: true Whether or not to listen on IPv6 (applied to all vhosts managed by this role). nginx vhosts: [] A list of vhost definitions (server blocks) for Nginx virtual hosts. Each entry will create a separate config file named by server name . If left empty, you will need to supply your own virtual host configuration. See the commented example in defaults/main.yml for available server options. If you have a large number of customizations required for your server definition(s), you're likely better off managing the vhost configuration file yourself, leaving this variable set to [] . nginx vhosts: - listen: \"443 ssl http2\" server name: \"example.com\" server name redirect: \"www.example.com\" root: \"/var/www/example.co","default_branch":null,"files":null,"tree":[],"storefront":"/r/geerlingguy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/geerlingguy/ansible-role-nginx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}