add by host custom allowed ips#161
Conversation
|
Hello! I'm not so sure for what this change might be needed TBH 😉 You can set |
|
in my case I have three device with a central device with my modification by example on gerard and oscar: flowchart LR
A[oscar] <--> B[merlin]
C[gerard] <--> B
so I don't want that a and communicate directly by wireguard themself because they are on same lan if I set flowchart LR
A[oscar] <--> B[merlin]
C[gerard] <--> B
A <--> C
|
|
I somehow still don't get this PR 😉 Personally it seems wrong to me to have a "global" variable where you define a dictionary where the hostname is the key while you have the Ansible's host repository on the other side. So if you have something specific that only applies to one host why not use host variables? 😕 I guess this Molecule test comes more or less close to your use case: https://github.com/githubixx/ansible-role-wireguard/tree/master/molecule/kvm-single-server Can you maybe use that one as a template and adjust it accordingly so that it matches your use case? You don't need to execute it as you most probably don't have Vagrant and KVM. But it'd give me an idea. |
Pull request githubixx#161 add by host custom allowed ips
|
@vincentDcmps I'm a little late to the party, but thanks for filing this PR. It's exactly what I needed! :) |
hello
I have apply change to customize allowed_ips in function of host.