Skip to content

roles-ansible/ansible_collection_wireguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

collection l3d.wireguard Maintainance License

Ansible Collection - l3d.wireguard

This is the Ansible Collection l3d.wireguard. A collection to to install wireguard-ui on linux servers.

Ansible Roles in l3d.wireguard

  • l3d.wireguard.wireguardui - Ansible role to install wireguard-ui

Using this Collection

You can install the collection using ansible-galaxy by running:

ansible-galaxy collection install l3d.wireguard:1.0.0

Remember you can to Upgrade to the latest version of the l3d.wireguard collection using the --upgrade parameter:

ansible-galaxy collection install l3d.wireguard --upgrade

Or you could clone this collection in your local ansible project for example to collections/ansible_collections/l3d.wireguard/. Make sure you checkout git submodules too. Example:

# Clone git Repo with submodules to specified path
git clone --recursive https://github.com/roles-ansible/ansible_collection_wireguard.git collections/ansible_collections/l3d/wireguard/

# change directory
cd collections/ansible_collections/l3d.wireguard/

# optionally init git submodules
git submodule update --init --recursive

# optionally install all requirements
ansible-galaxy collection install -r requirements.yml --upgrade

You can also list a collection in requirements.yml:

---
collections:
  - name: l3d.wireguard
    version: ">=1.0.0"

Example Playbook

Example Playbook using the l3d.wireguard.wireguardui role:

---
- name: "Install and Setup Wireguard-UI"
  hosts: wireguard.example.com
  roles:
    - {role: l3d.wireguard.wireguardui, tags: wireguardui}
  vars:
    wireguardui__conf_int_address: '10.42.42.0/24,fd42:1337:4223::/48'

Requirements

The roles in this collection using the community.general and ansible.posix ansible Collections.