vpn_wg_peer.j2 246 B

123456789
  1. {% for device in groups['mesh_devices'] %}
  2. [Peer]
  3. # {{ hostvars[device].hostname }}
  4. PublicKey = {{ hostvars[device].vpn_wg0_publickey }}
  5. Endpoint = 0.0.0.0:51800
  6. AllowedIPs = {{ vpn_wg0_network }}.{{ hostvars[device].ip_host }}/32
  7. {% endfor %}