Skip to content
Snippets Groups Projects
Commit 19a61d83 authored by Etienne Champetier's avatar Etienne Champetier Committed by Kubernetes Prow Robot
Browse files

containerd: use copy to set apt pin

parent 4eec302e
No related branches found
No related tags found
No related merge requests found
......@@ -81,14 +81,15 @@
# This is required to ensure any apt upgrade will not break kubernetes
- name: Set containerd pin priority to apt_preferences on Debian family
template:
src: "apt_preferences.d/debian_containerd.j2"
copy:
content: |
Package: {{ containerd_package }}
Pin: version {{ containerd_version }}*
Pin-Priority: 1001
dest: "/etc/apt/preferences.d/containerd"
owner: "root"
mode: 0644
when:
- ansible_os_family in ['Ubuntu', 'Debian']
- not is_ostree
when: ansible_pkg_mgr == 'apt'
- name: ensure containerd packages are installed
action: "{{ containerd_package_info.pkg_mgr }}"
......
Package: {{ containerd_package }}
Pin: version {{ containerd_version }}*
Pin-Priority: 1001
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment