blob: d6267678fbb3cc9d9ebc5e9fd596c3b3d06e8d42 (
plain) (
tree)
|
|
# =========================================================================== #
# __ _ __
# _________ / /__ _ __(_)_______ ____ ___ ______ __________/ /
# / ___/ __ \/ / _ \ | | /| / / / ___/ _ \/ __ `/ / / / __ `/ ___/ __ /
# / / / /_/ / / __/ | |/ |/ / / / / __/ /_/ / /_/ / /_/ / / / /_/ /
# /_/ \____/_/\___(_) |__/|__/_/_/ \___/\__, /\__,_/\__,_/_/ \__,_/
# /____/
#
# =========================================================================== #
---
- name: Check installation for wireguard
package:
name: wireguard-go wireguard-tools
state: present
when: "'-DC-' in inventory_hostname"
- 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
|