Commit 1fb19eb0 authored by Mathias BOCQUET's avatar Mathias BOCQUET

templates/default.j2 : set variables only if defined

parent cc91a86e
# {{ ansible_managed }}. role: {{ role_name }}, template: default.j2
LANG={{ locales_default }}
{% if locales_language is defined %}LANGUAGE={{ locales_language }}
{% if locales_language is defined and locales_language != '' %}LANGUAGE={{ locales_language }}
{% endif %}
{% if locales_lc_numeric is defined %}LC_NUMERIC={{ locales_lc_numeric }}
{% if locales_lc_numeric is defined and locales_lc_numeric != '' %}LC_NUMERIC={{ locales_lc_numeric }}
{% endif %}
{% if locales_lc_time is defined %}LC_TIME={{ locales_lc_time }}
{% if locales_lc_time is defined and locales_lc_time != '' %}LC_TIME={{ locales_lc_time }}
{% endif %}
{% if locales_lc_monetary is defined %}LC_MONETARY={{ locales_lc_monetary }}
{% if locales_lc_monetary is defined and locales_lc_monetary != '' %}LC_MONETARY={{ locales_lc_monetary }}
{% endif %}
{% if locales_lc_paper is defined %}LC_PAPER={{ locales_lc_paper }}
{% if locales_lc_paper is defined and locales_lc_paper != '' %}LC_PAPER={{ locales_lc_paper }}
{% endif %}
{% if locales_lc_measurement is defined %}LC_MEASUREMENT={{ locales_lc_measurement }}
{% if locales_lc_measurement is defined and locales_lc_measurement != '' %}LC_MEASUREMENT={{ locales_lc_measurement }}
{% endif %}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment