githubixx / ansible-role-wireguard

Ansible role for installing WireGuard VPN. Supports Ubuntu, Debian, Archlinx, Fedora and CentOS.
https://www.tauceti.blog/post/kubernetes-the-not-so-hard-way-with-ansible-wireguard/
585 stars 182 forks source link

'wireguard__restart_interface' is undefined with wg-config #211

Closed sas1024 closed 3 weeks ago

sas1024 commented 1 month ago

Hi!

I upgraded from 8.4.0 to 17.0.0 role version and give following error: When I try to use wg-config tag to deploy only configuration changes, I've got error 'wireguard__restart_interface' is undefined.

As workaround I added this to groups variables file:

wireguard__restart_interface: false

After this, role with tag wg-config works again.

githubixx commented 1 month ago

Honestly the tags are not very well tested. I guess I shouldn't have them implemented at all. Nevertheless I guess the problem is that this task is missing the wg-config tag. Without there is no default value for the internal wireguard__restart_interface variable. I try to fix that in the next release.

githubixx commented 3 weeks ago

Should be fixed by https://github.com/githubixx/ansible-role-wireguard/pull/213