wireguard config

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

No files matched your search

+1 -1
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
@@ -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 }}"