diff --git a/host_vars/mewitoot.de.yml b/host_vars/mewitoot.de.yml index f47f039..82b163d 100644 --- a/host_vars/mewitoot.de.yml +++ b/host_vars/mewitoot.de.yml @@ -20,7 +20,7 @@ netdata: true # VPN wireguard: true -wg_local_ip: 192.168.3.11/24 +wg_local_ip: 192.168.3.12/24 # Application migration: true \ No newline at end of file diff --git a/roles/server/tasks/utilities/wireguard.yml b/roles/server/tasks/utilities/wireguard.yml index cf587ba..be8cf9b 100644 --- a/roles/server/tasks/utilities/wireguard.yml +++ b/roles/server/tasks/utilities/wireguard.yml @@ -12,6 +12,23 @@ - wg_privkey 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 copy: content: "{{ item.key }}"