infrastructure/k8s/roles/prereq/tasks/main.yml

17 lines
292 B
YAML
Raw Normal View History

2022-09-11 16:49:31 +00:00
---
- 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
when: ansible_all_ipv6_addresses