Add Wireguard playbook and first commit
This commit is contained in:
22
roles/homelab/wireguard/templates/db.serti.fun.j2
Normal file
22
roles/homelab/wireguard/templates/db.serti.fun.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
$TTL 3600
|
||||
@ IN SOA wireguard.serti.fun. admin.serti.fun. (
|
||||
1 ; serial
|
||||
3600 ; refresh
|
||||
1800 ; retry
|
||||
604800 ; expire
|
||||
3600 ; minimum
|
||||
)
|
||||
|
||||
; Name servers
|
||||
@ IN NS wireguard.serti.fun.
|
||||
|
||||
; A records
|
||||
wireguard IN A {{ wireguard_address }}
|
||||
|
||||
@ IN A {{ wireguard_remote_address }}
|
||||
{% set apache2 = wireguard_clients | selectattr('name', 'equalto', 'apache2') | first %}
|
||||
{% for sub in subdomains %}
|
||||
{{ sub }} IN A {{ apache2.address }}
|
||||
{% endfor %}
|
||||
|
||||
* IN A {{ wireguard_remote_address }}
|
||||
Reference in New Issue
Block a user