You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
320 B
YAML
15 lines
320 B
YAML
---
|
|
- name: Enable ipv4 forwarding
|
|
ansible.posix.sysctl:
|
|
name: net.ipv4.ip_forward
|
|
value: '1'
|
|
sysctl_set: true
|
|
when: "{{ ipv4_forwarding }}"
|
|
|
|
- name: Enable ipv6 forwarding
|
|
ansible.posix.sysctl:
|
|
name: net.ipv6.conf.all.forwarding
|
|
value: '1'
|
|
sysctl_set: true
|
|
when: "{{ ipv6_forwarding }}"
|