mirror of
https://git.fsfe.org/fsfe-system-hackers/innernet-playbook.git
synced 2025-01-21 02:38:33 +01:00
add templates to improve decalarativeness
This commit is contained in:
parent
4eab5c852f
commit
8b238e121c
3
roles/server/templates/cidrs.j2
Normal file
3
roles/server/templates/cidrs.j2
Normal file
@ -0,0 +1,3 @@
|
||||
{% for cidr in cidrs %}
|
||||
- {"parent": {{ cidr.parent }}, "name": {{ cidr.name }}, "cidr": {{ cidr.cidr }}}
|
||||
{% endfor %}
|
3
roles/server/templates/peers.j2
Normal file
3
roles/server/templates/peers.j2
Normal file
@ -0,0 +1,3 @@
|
||||
{% for peer in peers %}
|
||||
- {"cidr": {{ peer.cidr }}, "name": {{ peer.name }}, "admin": {{ peer.admin }}}
|
||||
{% endfor %}
|
Loading…
Reference in New Issue
Block a user