diff --git a/roles/repos/tasks/debian.yml b/roles/repos/tasks/debian.yml index e0bed352..225322c3 100644 --- a/roles/repos/tasks/debian.yml +++ b/roles/repos/tasks/debian.yml @@ -10,6 +10,7 @@ ansible.builtin.apt_key: url: "{{ elasticstack_repo_key }}" state: absent + when: ansible_distribution_major_version <= "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