๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
517 B

{% macro postfix_option(option) -%}
{% if option.value is boolean -%}
{{ option.key }} = {{ 'yes' if option.value else 'no' }}
{% elif option.value | type_debug == 'list' -%}
{{ option.key }} =
{% for suboption in option.value -%}
{{ "\t" ~ suboption }}
{% endfor -%}
{% else -%}
{{ option.key }} = {{ option.value if option.value != None else '' }}
{% endif -%}
{% endmacro -%}
{% for option in (postfix_cfg | d({}) | dict2items) -%}
{{- postfix_option(option) }}
{%- endfor %}