From 80d7257a18414870ab2921161419dd64b03005f1 Mon Sep 17 00:00:00 2001 From: Julien Girardin Date: Wed, 17 Apr 2024 16:32:40 +0200 Subject: [PATCH] Fix haproxy pinning --- roles/apiserver_haproxy/tasks/pkg_Debian.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/apiserver_haproxy/tasks/pkg_Debian.yml b/roles/apiserver_haproxy/tasks/pkg_Debian.yml index dac2dc3..143d025 100644 --- a/roles/apiserver_haproxy/tasks/pkg_Debian.yml +++ b/roles/apiserver_haproxy/tasks/pkg_Debian.yml @@ -8,7 +8,7 @@ version: '{{ _apiserver_proxy_haproxy_version }}' when: - not(_haproxy_repo_just_added is changed and ansible_check_mode) - - packages.haproxy|default([])|select('match', _apiserver_proxy_haproxy_version)|list|length == 0 + - packages.haproxy|default([])|selectattr('version', 'match', _apiserver_proxy_haproxy_version)|list|length == 0 register: haproxy_version - name: "Create pinning files"