16 lines
793 B
Django/Jinja
16 lines
793 B
Django/Jinja
{%- set distros = [] -%}
|
|
{%- for distro in compatcheck_supported_distributions -%}
|
|
{%- if distro.version_min is defined -%}
|
|
{%- if distro.version_max is defined -%}
|
|
{{ distros.append(distro.name | capitalize + ' ' + distro.version_min | string + '-' + distro.version_max | string) }}
|
|
{%- else -%}
|
|
{{ distros.append(distro.name | capitalize + ' ' + distro.version_min | string + '+') }}
|
|
{%- endif -%}
|
|
{%- elif distro.version_max is defined -%}
|
|
{{ distros.append(distro.name | capitalize + ' <' + distro.version_max | string) }}
|
|
{%- else -%}
|
|
{{ distros.append(distro.name | capitalize) }}
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
This role only supports {{ distros | join(', ') }} (You are running {{ ansible_distribution }} {{ ansible_distribution_major_version }})
|