aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_wireguard/tasks/main.yml
blob: b77129ba4878e0f16ffc9a13136dd045f10e0600 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

# =========================================================================== #
#                   __                   _                                      __
#       _________  / /__       _      __(_)_______  ____ ___  ______ __________/ /
#      / ___/ __ \/ / _ \     | | /| / / / ___/ _ \/ __ `/ / / / __ `/ ___/ __  / 
#     / /  / /_/ / /  __/     | |/ |/ / / /  /  __/ /_/ / /_/ / /_/ / /  / /_/ /  
#    /_/   \____/_/\___(_)    |__/|__/_/_/   \___/\__, /\__,_/\__,_/_/   \__,_/   
#                                                /____/
#
# =========================================================================== #

---
- name: Check installation for wireguard
  package:
    name: wireguard-go wireguard-tools
    state: present

- name: Activate ipv4 forwarding for wg0 server
  shell: sysctl net.inet.ip.forwarding=1

- name: Activate ipv6 forwarding for wg0 server
  shell: sysctl net.inet6.ip6.forwarding=1
remember that computers suck.