Skip to content

lmcx/ansible-wireguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Wireguard

CI

An Ansible role that installs and configures Wireguard VPN.

Requirements

Role Variables

wg_start_method: "nm"

wg_start_method can be :

  • nm for NetworkManager
  • wg-quick
  • systemd-networkd
  • netctl
  • connman

The selected method will be used to configure, start and/or enable wireguard interfaces for this host.

wg_conf_directory: "/etc/wiregard"

wg_conf_directory is not mandatory and has different effects depending on the startup method selected

wg_config:
  wg0:
    address: "10.0.0.1"
    endpoint: "1.1.1.1"
    port: 12345
    allowed_ips: "10.0.0.1/24"
    start: true
    enable: true

Dependencies

Example Playbook

License

MIT

Author Information

Loïc Michaux

About

Ansible role for Wireguard VPN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published