Skip to content

Commit

Permalink
Update configure.yml
Browse files Browse the repository at this point in the history
set ipv4_forward when tunnel is defined
  • Loading branch information
Cormoran96 authored Jan 12, 2024
1 parent 5588e74 commit 8dc2a10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8dc2a10

Please sign in to comment.