Skip to content

JoeNyland/ansible-wireguard-role

Repository files navigation

joenyland.wireguard

CI

Installs WireGuard.

Requirements

None.

Role Variables

wireguard_interfaces

Defines the WireGuard interfaces to configure.

Example

wireguard_interfaces:
  wg0:
    address:
    mtu:
    post_up:
      - wg set %i private-key /etc/wireguard/private.key # Recommended. This key is generated on install of the role.
    dns: # Optional
      - 1.1.1.1 # DNS server 1
      - 2.2.2.2 # DNS server 2
      - vpn # Search domain
    peers:
      - name: # Optional
        public_key:
        allowed_ips:
        endpoint:  # Optional
        keep_alive: # Optional
    enabled: true # Should this interface start at boot?
    state: started # What state should the interface be in?

Dependencies

None.

Example Playbook

- hosts: server
  roles:
    - joenyland.wireguard

License

MIT

Author Information

⌨️ with ❤️ by Joe Nyland

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages