From 2b5cf6830d4505963b38cd4687940ebc68da054f Mon Sep 17 00:00:00 2001 From: Mustafa Naier <13101533+mnaier@users.noreply.github.com> Date: Wed, 17 Jun 2026 17:45:05 +0200 Subject: [PATCH] Fix Debian-specific ansible_distribution_major_version by casting to integer for proper comparison --- roles/repos/tasks/debian.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/repos/tasks/debian.yml b/roles/repos/tasks/debian.yml index 225322c3..5c828035 100644 --- a/roles/repos/tasks/debian.yml +++ b/roles/repos/tasks/debian.yml @@ -10,7 +10,7 @@ ansible.builtin.apt_key: url: "{{ elasticstack_repo_key }}" state: absent - when: ansible_distribution_major_version <= "12" + when: (ansible_distribution_major_version | int) <= 12 # NOTE: Workaround for older ansible-core versions combined with Python 3.12 on managed nodes (e.g. Ubuntu 24.04), # where ansible.builtin.get_url may fail with HTTPSConnection/cert_file related errors. We intentionally use curl via