Adding indents.
This commit is contained in:
parent
9de2e18c3e
commit
75f971ae71
@ -11,14 +11,14 @@
|
|||||||
default=keepalived_defaults,
|
default=keepalived_defaults,
|
||||||
merge=True) %}
|
merge=True) %}
|
||||||
|
|
||||||
{%- macro config_entries(data) -%}
|
{%- macro config_entries(data, indents) -%}
|
||||||
{%- if data is mapping -%}
|
{%- if data is mapping -%}
|
||||||
{%- for entry in data|dictsort -%}
|
{%- for entry in data|dictsort -%}
|
||||||
{{ entry[0] }} {
|
{{ entry[0]|indent(indents, True) }} {
|
||||||
{{ config_entries(entry[1]) }}
|
{{ config_entries(entry[1], indents + 2) }}
|
||||||
}{{ '\n' }}
|
}{{ '\n' }}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{{ config_entries(keepalived_final_values) }}
|
{{ config_entries(keepalived_final_values, 0) }}
|
||||||
|
Loading…
Reference in New Issue
Block a user