Skip to content

Fix Debian ansible_distribution_major_version numeric comparison#466

Merged
afeefghannam89 merged 1 commit into
NETWAYS:mainfrom
Rosa-Luxemburgstiftung-Berlin:debian-ansible-distribution-version-check
Jun 22, 2026
Merged

Fix Debian ansible_distribution_major_version numeric comparison#466
afeefghannam89 merged 1 commit into
NETWAYS:mainfrom
Rosa-Luxemburgstiftung-Berlin:debian-ansible-distribution-version-check

Conversation

@mnaier

@mnaier mnaier commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This change fixes a type comparison issue in the Ansible condition. Previously, ansible_distribution_major_version was compared as a string, which could lead to incorrect lexical comparisons. The update explicitly converts it to an integer using | int, ensuring a proper numeric comparison when checking if the version is less than or equal to 12.

@afeefghannam89

Copy link
Copy Markdown
Member

Thank. LGTM.

@afeefghannam89 afeefghannam89 merged commit 5f0887d into NETWAYS:main Jun 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants