2022-12-20 19:47:11 +01:00
|
|
|
---
|
|
|
|
- name: "enable ipv4 forwarding"
|
|
|
|
ansible.posix.sysctl:
|
|
|
|
name: "net.ipv4.ip_forward"
|
|
|
|
value: "1"
|
|
|
|
sysctl_file: "/etc/sysctl.d/local.conf"
|
|
|
|
reload: true
|
|
|
|
|
2023-07-25 00:01:49 +02:00
|
|
|
- name: "enable ipv6 forwarding"
|
|
|
|
ansible.posix.sysctl:
|
|
|
|
name: "net.ipv6.conf.all.forwarding"
|
|
|
|
value: "1"
|
|
|
|
sysctl_file: "/etc/sysctl.d/local.conf"
|
|
|
|
reload: true
|
|
|
|
|
2022-12-20 19:47:11 +01:00
|
|
|
- name: "script for creating virtual interfaces"
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "./ip-link-add.sh"
|
|
|
|
dest: "/usr/local/sbin/ip-link-add.sh"
|
|
|
|
mode: 0755
|