mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-18 19:10:39 +01:00
22 lines
635 B
YAML
22 lines
635 B
YAML
---
|
|
- name: Ensure procps is installed.
|
|
package:
|
|
name: "{{ procps_package }}"
|
|
state: present
|
|
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:
|
|
name: "{{ item }}"
|
|
value: '1'
|
|
state: present
|
|
loop:
|
|
- net.bridge.bridge-nf-call-iptables
|
|
- net.bridge.bridge-nf-call-ip6tables
|
|
when: >
|
|
ansible_distribution != 'Debian'
|
|
or ansible_distribution_major_version | int < 10
|