Skip to content

An Ansible role to deploy both client and server configurations for Wireguard.

License

Notifications You must be signed in to change notification settings

zaszi/ansible-role-wireguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Wireguard

Deploys both client and server configurations for Wireguard.

Requirements

To install Arch Linux packages, this role relies on the pacman module of the community general collection. Install it with ansible-galaxy collection install community.general.

This role requires systemd-networkd to be installed on both client and server hosts.

Role Variables

Variable Choices/Default Comments
arch auto, armv7h, armv8h Machine architecture, defaults to auto for x86_64, but must be changed for ARM-based machines
wg_server hostname, … The name of the server. If this equals the current machine hostname, it installs the server configuration
wg_endpoint example.com, … The domain for the host. Note that this must be unique per machine
wg_address4 10.200.200.1, … The IPv4 address for the host. Note that this must be unique per machine
wg_address6 10.200.200.1, … The IPv6 address for the host. Note that this must be unique per machine

Dependencies

None.

Example Playbook

- hosts: all
  become: true
  roles:
     - ansible-role-wireguard

License

Ansible-role-wireguard is licensed under the MIT license.

About

An Ansible role to deploy both client and server configurations for Wireguard.

Topics

Resources

License

Stars

Watchers

Forks