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

Error: Destination directory /etc/wireguard does not exist #14

Closed mabushey closed 5 years ago

mabushey commented 5 years ago

Seems to plug along OK until:

TASK [wireguard_role : Generate server config] *******************************************************************************************************************************************************************************************************************************************************************************
fatal: [linode.example.com]: FAILED! => {"changed": false, "checksum": "e6bdaa293e4cd1bedebe62b54ec805b76884cdba", "msg": "Destination directory /etc/wireguard does not exist"} 
PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************************************************************
linode.example.com   : ok=12   changed=8    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0 
iamckn commented 5 years ago

I see you resolved this.

mabushey commented 5 years ago

Yes I manually did a mkdir. The Ansbile config should do this, there's no reason not to verify this is created and has the correct permissions.