mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-06-27 10:44:43 +02:00
31 lines
698 B
YAML
31 lines
698 B
YAML
---
|
|
- name: Set SELinux to disabled state
|
|
selinux:
|
|
state: disabled
|
|
when: ansible_distribution in ['CentOS', '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: "{{ items }}"
|
|
value: "1"
|
|
state: present
|
|
reload: yes
|
|
when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux']
|
|
loop:
|
|
- net.bridge.bridge-nf-call-iptables
|
|
- net.bridge.bridge-nf-call-ip6tables
|