Added upstreams option to _base template
parent
95e2cb5f12
commit
b71914ecd1
|
@ -5,6 +5,19 @@
|
||||||
# {{ ansible_managed }}
|
# {{ 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
|
# HTTP
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue