508e433bab
Co-authored-by: Lino Silva <lino.silva@farfetch.com> Reviewed-on: #1
13 lines
522 B
YAML
13 lines
522 B
YAML
---
|
|
- name: Allow ipv4 forwarding
|
|
ansible.builtin.shell: "sysctl net.ipv4.ip_forward=1"
|
|
|
|
- name: Allow ipv6 forwarding
|
|
ansible.builtin.shell: "sysctl net.ipv6.conf.all.forwarding=1"
|
|
|
|
- name: Uncomment ipv4 forward line on /etc/sysctl.conf
|
|
ansible.builtin.shell: "sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/g' /etc/sysctl.conf"
|
|
|
|
- name: Uncomment ipv6 forward line on /etc/sysctl.conf
|
|
ansible.builtin.shell: "sed -i 's/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=1/g' /etc/sysctl.conf"
|