Skip to content

Ansible Playbook for WireGuard deployment on CentOS 7, Debian 8, Ubuntu 16.04 and newer releases.

License

Notifications You must be signed in to change notification settings

mina-alber/wireguard-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WireGuard Ansible

AUR Galaxy

This Ansible playbook installs and configures the WireGuard server on CentOS 7, Debian 8, Ubuntu 16.04 and newer releases. Everything is configurable all you need to do is to modify the vars file & the hosts file and you're ready to go.

Requirements

This playbook tested on Ansible 2.5

Installation

Install from Ansible Galaxy

ansible-galaxy install mina-alber.wireguard-ansible

Run Ansible playbook

ansible-playbook -i hosts_inventory wireguard.yml

Role Variables

To configure the script before using it please check vars/main.yml

wireguard_repo: "https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo"
wireguard_interface_ip: "10.0.0.1/24" # IPADDR/PREFIX
wireguard_port: "51820"

TODOs

  • Support Ubuntu
  • Grant and revoking users keys
  • Test the playbook on Ansible old versions

License

GPL v3.0

How to Contribute

Fork > Do your magic > Test > Pull request

About

Ansible Playbook for WireGuard deployment on CentOS 7, Debian 8, Ubuntu 16.04 and newer releases.

Resources

License

Stars

Watchers

Forks

Packages

No packages published