forked from k3s-io/k3s-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CentOS/RHEL compatibility for Ansible roles
- Setting IPv4 & IPv6 forwarding - Setting `sysctl:net.bridge.bridge-nf-call-iptables` and `bridge-nf-call-ip6tables` to enabled since it is disabled by default on some CentOS systems
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
- 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
gather_facts: yes | ||
become: yes | ||
roles: | ||
- { role: prereq } | ||
- { role: download } | ||
- { role: raspbian } | ||
|
||
|