diff --git a/tasks/configure.yml b/tasks/configure.yml index 2493ffb..c51caf2 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -8,3 +8,12 @@ become: true when: netplan_configuration != [] notify: netplan generate config + +- name: set ipv4_forward + ansible.posix.sysctl: + name: net.ipv4.ip_forward + value: '1' + sysctl_set: true + state: present + reload: true + when: netplan_configuration['network']['tunnels'] is defined