wireguard config

This commit is contained in:
rene
2022-04-21 17:34:51 +02:00
parent 168b6a79f3
commit e82d59fd0b
2 changed files with 18 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ netdata: true
# VPN # VPN
wireguard: true wireguard: true
wg_local_ip: 192.168.3.11/24 wg_local_ip: 192.168.3.12/24
# Application # Application
migration: true migration: true

View File

@@ -12,6 +12,23 @@
- wg_privkey is not defined - wg_privkey is not defined
- wg_pubkey is not defined - wg_pubkey is not defined
- name: server | utilities | wireguard cat pubkey
command: "cat /etc/wireguard/publickey"
register: wg_publickkey
when:
- wg_pubkey is not defined
- name: server | utilities | wireguard output pubkey
debug:
var: wg_publickkey
when:
- wg_pubkey is not defined
- pause:
prompt: # not required. Optional text to use for the prompt message.
when:
- wg_pubkey is not defined
- name: server | utilities | wireguard copy keys - name: server | utilities | wireguard copy keys
copy: copy:
content: "{{ item.key }}" content: "{{ item.key }}"