Skip to content

Commit

Permalink
Containerd: when deploying with containerd we need to ensure iptables…
Browse files Browse the repository at this point in the history
… and ipset are in place or risk breaking things like weave
  • Loading branch information
cristicalin committed Nov 11, 2021
1 parent 94e0020 commit 8df5860
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/container-engine/containerd-common/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ containerd_ubuntu_repo_component: "stable"
# Debian docker-ce repo
containerd_debian_repo_base_url: "https://download.docker.com/linux/debian"
containerd_debian_repo_component: "stable"

# Mandatory packages
containerd_mandatory_packages:
- iptables
- ipset
8 changes: 8 additions & 0 deletions roles/container-engine/containerd-common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@
skip: true
tags:
- facts

- name: containerd-common | ensure mandatory packages are present
package:
name: "{{ containerd_mandatory_packages }}"
state: present
when:
- not is_ostree
- ansible_distribution not in ["Flatcar Container Linux by Kinvolk", "Flatcar"]

0 comments on commit 8df5860

Please sign in to comment.