2022-10-11 07:52:03 +00:00
|
|
|
---
|
|
|
|
title: wireguard
|
|
|
|
type: docs
|
|
|
|
---
|
|
|
|
|
|
|
|
[![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.wireguard) [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.wireguard?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.wireguard) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](https://gitea.rknet.org/ansible/xoxys.wireguard/src/branch/main/LICENSE)
|
|
|
|
|
|
|
|
Setup wireguard VPN.
|
|
|
|
|
|
|
|
<!--more-->
|
|
|
|
|
|
|
|
- [Default Variables](#default-variables)
|
|
|
|
- [wireguard_address](#wireguard_address)
|
|
|
|
- [wireguard_interface](#wireguard_interface)
|
|
|
|
- [wireguard_peers](#wireguard_peers)
|
|
|
|
- [wireguard_peers_unmanaged](#wireguard_peers_unmanaged)
|
|
|
|
- [wireguard_port](#wireguard_port)
|
2022-10-11 19:53:16 +00:00
|
|
|
- [wireguard_postdown](#wireguard_postdown)
|
|
|
|
- [wireguard_postup](#wireguard_postup)
|
|
|
|
- [wireguard_predown](#wireguard_predown)
|
|
|
|
- [wireguard_preup](#wireguard_preup)
|
2022-10-11 07:52:03 +00:00
|
|
|
- [Dependencies](#dependencies)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Default Variables
|
|
|
|
|
|
|
|
### wireguard_address
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
wireguard_address: 10.0.0.1/24
|
|
|
|
```
|
|
|
|
|
|
|
|
### wireguard_interface
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
wireguard_interface: wg0
|
|
|
|
```
|
|
|
|
|
|
|
|
### wireguard_peers
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
wireguard_peers: []
|
|
|
|
```
|
|
|
|
|
|
|
|
### wireguard_peers_unmanaged
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
wireguard_peers_unmanaged: []
|
|
|
|
```
|
|
|
|
|
|
|
|
### wireguard_port
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
wireguard_port: '51820'
|
|
|
|
```
|
|
|
|
|
2022-10-11 19:53:16 +00:00
|
|
|
### wireguard_postdown
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
wireguard_postdown: []
|
|
|
|
```
|
|
|
|
|
|
|
|
### wireguard_postup
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
wireguard_postup: []
|
|
|
|
```
|
|
|
|
|
|
|
|
### wireguard_predown
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
wireguard_predown: []
|
|
|
|
```
|
|
|
|
|
|
|
|
### wireguard_preup
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
wireguard_preup: []
|
|
|
|
```
|
|
|
|
|
2022-10-11 07:52:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
None.
|