From b94c5f3583b00b090f654c3c4f0bf1a53ff34056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Dunand?= Date: Mon, 30 Sep 2024 17:51:52 +0200 Subject: [PATCH] Fix new worker node addition Ignore unhold error when packages are not yet installed. --- roles/packages/tasks/pkg_Debian.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/packages/tasks/pkg_Debian.yml b/roles/packages/tasks/pkg_Debian.yml index 654cfd4..d561e7c 100644 --- a/roles/packages/tasks/pkg_Debian.yml +++ b/roles/packages/tasks/pkg_Debian.yml @@ -13,6 +13,7 @@ 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: