Coder Social home page Coder Social logo

ansible-role-wireguard's Introduction

Ansible role Wireguard

syntax check

This Ansible role performs a Wireguard installtion.

Requirements

This role does work with the following minimum versions:

  • Ansible: 2.8.4
  • Wireguard: v1.0.20210914
  • Ubuntu: 16.04
  • Fedora: 32

Example

---
- hosts: localhost
  become: yes
  vars:
    - wireguard_users:
        - username: "client_1"
          email: "[email protected]"
          private_ip: "10.99.0.2"
          allow_ips: "10.69.0.0/16"
          state: "present"
  roles:
    - ansible-role-wireguard

Roles Variables

The role defines variables in defaults/main.yml.

private_ip

  • Private IP address of instance. Use to config SNAT with iptables.
  • Default: ansible_default_ipv4.address

wireguard_interface

  • Name of wireguard network interface
  • Default: wg0

wireguard_subnet

  • Subnetwork to use in AllowedIPs configuration
  • Default: 10.99.0.0/24

wireguard_server_address

  • IP address use to config for server (interface wg0)
  • Default: 10.99.0.1/24

wireguard_port_listen

  • Wireguard UDP port to listen.
  • Default: 51820

wireguard_users

  • List of user to provision. Follow this structure.
  • Example:
wireguard_users:
  - username: "client_1"
    email: "[email protected]"
    private_ip: "10.99.0.2"
    allow_ips: "10.69.0.0/16"
    state: "present"

mail_from

mail_title

  • Title for mails, usually name of company.

smtp_user

  • Key of your AWS SES

smtp_pass

  • Secret of your AWS SES

License

BSD-2-Clause

Author Information

Linh Nguyen

ansible-role-wireguard's People

Contributors

banmanh482 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.