Using the macro function.
This commit is contained in:
parent
351e9f904c
commit
308cf7b22f
@ -14,7 +14,9 @@
|
||||
{%- macro config_entries(data) -%}
|
||||
{%- if data is mapping -%}
|
||||
{%- for entry_type in data|dictsort -%}
|
||||
{{ entry_type }}
|
||||
{{ entry_type }}{{ '\n' }}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
[%- config_entries(keepalived_final_values) -%}
|
||||
|
Loading…
Reference in New Issue
Block a user