iamckn / wireguard_ansible

Ansible scripts for the set up a typical wireguard VPN connection
https://www.ckn.io/blog/2017/11/14/wireguard-vpn-typical-setup/
322 stars 69 forks source link

fatal: [<my-server-ip>]: UNREACHABLE! => #22

Open alexlii1971 opened 3 years ago

alexlii1971 commented 3 years ago

Hello,

Two question:

1#fatal: On ubuntu, I install it on Linode server with SSH shell by following installation tutorial at https://github.com/iamckn/wireguard_ansible#quick-setup


Edit the hosts file in that folder and fill in the IP field with the VPN server IP

Begin the remote installation process by running

ansible-playbook wireguard.yml -u root -k -i hosts

before running command ansible-playbook wireguard.yml -u root -k -i hosts, I did input server ip in hosts file under directory of /wireguard_ansible, bu there is fatal error as below, and I replace real ip with my-server-ip:

`fatal: []: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname : Name or service not known", "unreachable": true}

PLAY RECAP *****

: ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0 ` or check the screenshot please: https://prnt.sc/10jn88k what did I missed please? **2# Prevent DNS leak** By the way, after wireguard_ansible installation, do I still need configure to prevent DNS leaking as tutorial at https://www.ckn.io/blog/2017/11/14/wireguard-vpn-typical-setup/ Thanks