mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-03-02 09:32:09 +07:00
Added upstreams option to _base template
This commit is contained in:
@@ -5,6 +5,19 @@
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
|
||||
{% if item.upstreams is defined and item.upstreams is iterable %}
|
||||
{% for upstream in item.upstreams %}
|
||||
upstream {{ upstream.name }} {
|
||||
server {{ upstream.server }};
|
||||
{% if upstream.params is defined and upstream.params is iterable %}
|
||||
{% for param in upstream.params %}
|
||||
{{ param }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
#
|
||||
# HTTP
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user