wireguard config
This commit is contained in:
@@ -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 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user