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