mirror of
https://github.com/hanzo-io/cloud.git
synced 2026-11-02 17:30:47 +00:00
Add Wireguard configs and ansible playbooks. Added Wireguard Peer doctype for adding wireguard peers
13 lines
242 B
YAML
13 lines
242 B
YAML
---
|
|
- name: Regenerate Wireguard Config
|
|
template:
|
|
src: wg.conf
|
|
dest: /etc/wireguard/wg0.conf
|
|
owner: root
|
|
group: root
|
|
mode: 0600
|
|
|
|
- name: Reload Wireguard with systemd
|
|
systemd:
|
|
name: wg-quick@wg0
|
|
state: reloaded |