vundb / ansible-role-nginx-site
Ansible role to configure sites for nginx service.
Installs: 63
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:chef-role
Requires
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-12-10 23:47:05 UTC
README
Ansible role to configure sites for nginx service.
Requirements
None.
Role Variables
-
nginx_user
: Name of system user to run service with. Default value is "nginx" -
nginx_group
: Name of system group to run service with. Default value is "nginx" -
nginx_services
: Array with services to be restarted on configuration changes. Default value is ["nginx"] -
nginx_sites
: Array with site configuration. Also called server blocks. See default vars file
Dependencies
None.
Example Playbook
- hosts: all
roles:
- role: vundb-nginx-site
nginx_sites:
- label: "example.com"
listen_hosts: ["80"]
server_names: ["example.com"]
access_log: "/var/log/nginx/example.com.access_log"
error_log: "/var/log/nginx/example.com.error_log"
root: "/var/www/example.com"
License
MIT