Skip to content

Commit 89f81ca

Browse files
Fix undefined ansible_pkg_mgr (#18)
Fix undefined ansible_pkg_mgr
1 parent 2fc3f74 commit 89f81ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

images/capi/ansible/roles/sysprep/tasks/debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
machine_id_mode: "0644"
1919

2020
# This is required to ensure any apt upgrade will not break kubernetes
21-
- name: Tell Debian hosts not to change the kuberetes versions with apt upgrade
21+
- name: Tell Debian hosts not to change the Kubernetes versions with apt upgrade
2222
dpkg_selections:
2323
name: "{{ item }}"
2424
selection: hold
25-
when: ansible_pkg_mgr == 'apt'
25+
when: ansible_facts['pkg_mgr'] == 'apt'
2626
changed_when: false
2727
with_items:
2828
- kubelet

0 commit comments

Comments
 (0)