14 lines
329 B
YAML
14 lines
329 B
YAML
---
|
|
- name: "enable ipv4 forwarding"
|
|
ansible.posix.sysctl:
|
|
name: "net.ipv4.ip_forward"
|
|
value: "1"
|
|
sysctl_file: "/etc/sysctl.d/local.conf"
|
|
reload: true
|
|
|
|
- name: "script for creating virtual interfaces"
|
|
ansible.builtin.copy:
|
|
src: "./ip-link-add.sh"
|
|
dest: "/usr/local/sbin/ip-link-add.sh"
|
|
mode: 0755
|