mirror of https://github.com/k3s-io/k3s
36 lines
932 B
YAML
36 lines
932 B
YAML
---
|
|
- name: Set SELinux to disabled state
|
|
selinux:
|
|
state: disabled
|
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|
|
|
|
- name: Enable IPv4 forwarding
|
|
sysctl:
|
|
name: net.ipv4.ip_forward
|
|
value: "1"
|
|
state: present
|
|
reload: yes
|
|
|
|
- name: Enable IPv6 forwarding
|
|
sysctl:
|
|
name: net.ipv6.conf.all.forwarding
|
|
value: "1"
|
|
state: present
|
|
reload: yes
|
|
|
|
- name: Set bridge-nf-call-iptables (just to be sure)
|
|
sysctl:
|
|
name: net.bridge.bridge-nf-call-iptables
|
|
value: "1"
|
|
state: present
|
|
reload: yes
|
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|
|
|
|
- name: Set bridge-nf-call-ip6tables (just to be sure)
|
|
sysctl:
|
|
name: net.bridge.bridge-nf-call-iptables
|
|
value: "1"
|
|
state: present
|
|
reload: yes
|
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|