Skip to content

Ansible role that installs Wireguard VPN on Linux

License

Notifications You must be signed in to change notification settings

unleftie/ansible-role-wireguard

 
 

Repository files navigation

Ansible Role for Wireguard VPN setup

CI OpenSSF Scorecard

Compatibility

Platform Version
debian 12

Dependencies

Role dependencies

Local Testing

git clone https://github.com/unleftie/ansible-role-wireguard.git
cd ansible-role-wireguard/
molecule test

Installation

Upgradability notice: When upgrading from old version of this role, be aware that some files may be lost.

- name: Sample 1
  hosts: all
  become: true
  pre_tasks:
    - name: Ensure apt cache are updated
      apt:
        update_cache: true
        cache_valid_time: 3600
      when: ansible_os_family == "Debian"
  tasks:
    - include_role:
        name: "ansible-role-wireguard"

Adding new clients

bash /etc/wireguard/$WG_INTERFACE-files/add-client.sh

📝 License

This project is licensed under the MIT.

About

Ansible role that installs Wireguard VPN on Linux

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 94.5%
  • Jinja 5.5%