mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-28 19:05:53 +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
|