Skip to content

Commit

Permalink
Fix unhold task ignore error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tassatux committed Oct 23, 2024
1 parent b94c5f3 commit e622a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/packages/tasks/pkg_Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e622a22

Please sign in to comment.