Skip to content

Commit 35f0457

Browse files
committed
Containerd: when deploying with containerd we need to ensure iptables and ipset are in place or risk breaking things like weave
1 parent a897fd8 commit 35f0457

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

roles/container-engine/containerd-common/defaults/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ containerd_ubuntu_repo_component: "stable"
1515
# Debian docker-ce repo
1616
containerd_debian_repo_base_url: "https://download.docker.com/linux/debian"
1717
containerd_debian_repo_component: "stable"
18+
19+
# Mandatory packages
20+
containerd_mandatory_packages:
21+
- iptables
22+
- ipset

roles/container-engine/containerd-common/tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@
2929
skip: true
3030
tags:
3131
- facts
32+
33+
- name: containerd-common | ensure mandatory packages are present
34+
package:
35+
name: "{{ containerd_mandatory_packages }}"
36+
state: present
37+
when:
38+
- not is_ostree
39+
- ansible_distribution not in ["Flatcar Container Linux by Kinvolk", "Flatcar"]

0 commit comments

Comments
 (0)