Use sysctl to enable p2p comms

This commit is contained in:
Jake Howard 2020-05-09 20:07:19 +01:00
parent f6214f1495
commit 095c8c4562
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -35,3 +35,12 @@
loop: "{{ wireguard.clients|dict2items }}" loop: "{{ wireguard.clients|dict2items }}"
loop_control: loop_control:
label: "{{ item.key }}" label: "{{ item.key }}"
- name: Enable p2p communication
sysctl:
name: net.ipv4.ip_forward
value: '1'
sysctl_set: yes
state: present
reload: yes
become: true