Skip to content

noobient/ansible-galaxy-wireguard

Repository files navigation

noobient.wireguard

Synopsys

This role allows you to install and configure a WireGuard server.

Parameters

Name Required Example Description
wg_endpoint no vpn.foo.com The FQDN / IP address of your WireGuard server. Clients will connect to this address. Defaults to your server's primary IP address.
wg_ip no 192.168.0.1 The "virtual" IP address of the WireGuard Server on the tunnel network. Clients will be assigned adjacent IPs automatically. Defaults to 10.10.10.1.
wg_port no 12345 The WireGuard server port. Defaults to 44444.
wg_clients no 10 The number of allowed clients. Defaults to 5.
wg_dns no 9.9.9.9 The DNS server clients will use for name resolution. Defaults to 1.1.1.1 (Cloudflare).
wg_tunnel no full Tunnel type, can be either full (all client traffic goes through the server) or split (only tunnel traffic goes through). Defaults to split.
wg_users no me,myself,irene Comma separated list of nick names for your users. Must be the same number as wg_clients. No default values.
wg_repo no https://github.com/smitty/wg-config HTTP URL of the GitHub repo where you want to push your generated WireGuard config files. No default values.
wg_credential no https://smitty%40gmail.com:[email protected] Your GitHub personal access token for the repo specified in wg_repo. No default values.

Examples

- include_role:
    name: noobient.wireguard
  vars:
    wg_endpoint: 'vpn.killingfloor2.party'
    wg_clients: '6'
    wg_tunnel: 'split'

Return Values

N/A

Support

Platform Support Status
Linter Lint
AlmaLinux 8 AlmaLinux 8
AlmaLinux 9 AlmaLinux 9
Fedora 38 Fedora 38
Fedora 39 Fedora 39
Ubuntu 18.04 Ubuntu 18.04
Ubuntu 20.04 Ubuntu 20.04
Ubuntu 22.04 Ubuntu 22.04

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published