mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-09 12:42:10 +07:00
New feature: upstream state (remove upstream if needed)
This commit is contained in:
@@ -11,6 +11,7 @@ Upstream params
|
||||
- `name`: upstream name. Can be use in vhost with *proxy_pass http://upstream_name*
|
||||
- `params`: list of param (hash, zone...)
|
||||
- `servers`: each upstream MUST have at least 1 server
|
||||
- `state`: Optional. Can be 'absent' or 'present'
|
||||
|
||||
Server params
|
||||
-------------
|
||||
@@ -38,4 +39,5 @@ nginx_upstreams:
|
||||
max_conns: 150
|
||||
weight: 10
|
||||
down: false
|
||||
state: 'present'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user