Add compatcheck role
Meant to be used by other roles
This commit is contained in:
15
roles/compatcheck/templates/distroerror.j2
Normal file
15
roles/compatcheck/templates/distroerror.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
{%- 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 }})
|
||||
Reference in New Issue
Block a user