2019-09-28 22:19:18 +00:00
|
|
|
---
|
|
|
|
- name: Set SELinux to disabled state
|
|
|
|
selinux:
|
|
|
|
state: disabled
|
|
|
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|
|
|
|
|
2019-10-28 03:34:34 +00:00
|
|
|
- name: Enable IPv4 forwarding
|
2019-09-28 22:19:18 +00:00
|
|
|
sysctl:
|
|
|
|
name: net.ipv4.ip_forward
|
|
|
|
value: "1"
|
|
|
|
state: present
|
|
|
|
reload: yes
|
|
|
|
|
2019-10-28 03:34:34 +00:00
|
|
|
- name: Enable IPv6 forwarding
|
2019-09-28 22:19:18 +00:00
|
|
|
sysctl:
|
|
|
|
name: net.ipv6.conf.all.forwarding
|
|
|
|
value: "1"
|
|
|
|
state: present
|
|
|
|
reload: yes
|
|
|
|
|
2019-10-28 03:34:34 +00:00
|
|
|
- name: Set bridge-nf-call-iptables (just to be sure)
|
2019-09-28 22:19:18 +00:00
|
|
|
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'
|
|
|
|
|
2019-10-28 03:34:34 +00:00
|
|
|
- name: Set bridge-nf-call-ip6tables (just to be sure)
|
2019-09-28 22:19:18 +00:00
|
|
|
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'
|