|
|
|
|
|
|
|
|
{%- elif value is mapping -%} |
|
|
{%- elif value is mapping -%} |
|
|
{{ key|indent(ind, True) }}{{ operator }}{{ '{' }} |
|
|
{{ key|indent(ind, True) }}{{ operator }}{{ '{' }} |
|
|
{%- for k, v in value.items() %} |
|
|
{%- for k, v in value.items() %} |
|
|
|
|
|
{%- if k != 'include' %} |
|
|
{{ nginx_block(v, k, operator, delim, (ind + indent_increment)) }} |
|
|
{{ nginx_block(v, k, operator, delim, (ind + indent_increment)) }} |
|
|
|
|
|
{%- endif %} |
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
|
|
|
{%- if 'include' in value.keys() %} |
|
|
|
|
|
{{ nginx_block(value['include'], 'include', operator, delim, (ind + indent_increment)) }} |
|
|
|
|
|
{%- endif %} |
|
|
{{ '}'|indent(ind, True) }} |
|
|
{{ '}'|indent(ind, True) }} |
|
|
{%- elif value is iterable -%} |
|
|
{%- elif value is iterable -%} |
|
|
{%- for v in value %} |
|
|
{%- for v in value %} |