vundb / ansible-role-nginx-upstream
Ansible role to configure nginx upstreams used for loadbalancing
Installs: 58
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-11 00:13:07 UTC
README
Ansible role to configure nginx upstreams used for loadbalancing.
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_upstreams
: Array with upstream configuration. See default vars file
Dependencies
None.
Example Playbook
- hosts: all
roles:
- role: vundb-nginx-lb
nginx_upstreams:
- label: "example-com"
server_name: "example.com"
port: 80
ip_hash: true
keepalive: 32
servers:
- "127.0.0.1:81"
License
MIT