From e622a2282d6914b1887a842e9180bc5a00812ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Dunand?= Date: Wed, 23 Oct 2024 13:36:33 +0200 Subject: [PATCH] Fix unhold task ignore error --- roles/packages/tasks/pkg_Debian.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/packages/tasks/pkg_Debian.yml b/roles/packages/tasks/pkg_Debian.yml index d561e7c..316e48d 100644 --- a/roles/packages/tasks/pkg_Debian.yml +++ b/roles/packages/tasks/pkg_Debian.yml @@ -13,13 +13,13 @@ dest: /etc/apt/preferences.d/{{ item.pkg }} state: absent loop: "{{ kube_package_dict|dict2items('pkg', 'version')|rejectattr('version') }}" - ignore_errors: "{{ _kube_repo_just_added is changed or ansible_check_mode }}" - name: 'Unhold package before upgrade' dpkg_selections: selection: 'install' name: '{{ item }}' loop: "{{ kube_package_dict.keys() }}" + ignore_errors: "{{ _kube_repo_just_added is changed or ansible_check_mode }}" - name: 'Install kubernetes packages' apt: