diff --git a/tasks/sysctl-setup.yml b/tasks/sysctl-setup.yml index 174ebca..8bbe373 100644 --- a/tasks/sysctl-setup.yml +++ b/tasks/sysctl-setup.yml @@ -7,6 +7,12 @@ ansible_distribution != 'Debian' or ansible_distribution_major_version | int < 10 +- name: Load br_netfilter. + shell: modprobe br_netfilter + when: > + ansible_distribution != 'Debian' + or ansible_distribution_major_version | int < 10 + # See: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#letting-iptables-see-bridged-traffic - name: Let iptables see bridged traffic. sysctl: