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: