ansible-role-wireguard icon indicating copy to clipboard operation
ansible-role-wireguard copied to clipboard

Allow user customize wg.conf file

Open sckol opened this issue 3 years ago • 1 comments

Now etc/wireguard/wg.conf.j2 template is hardcoded into the role. This PR proposes allow user change the template to implement some custom network layout. Unortunately, it is impossible in Ansible without changing the role, see: https://stackoverflow.com/questions/55742881/is-there-a-way-to-override-a-template-defined-into-an-ansible-galaxy-role

sckol avatar Mar 26 '22 11:03 sckol

Thanks for the PR! But I already came to the conclusion that this doesn't makes that much sense. Also see https://github.com/githubixx/ansible-role-wireguard/pull/133 . The whole logic basically is in this template. If someone needs a different logic then I think it's better to fork this role.

githubixx avatar Apr 06 '22 19:04 githubixx