mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Tinc setup
This commit is contained in:
parent
3bcd961c81
commit
e954247db5
20 changed files with 584 additions and 59 deletions
10
roles/tinc/templates/tinc.conf.j2
Normal file
10
roles/tinc/templates/tinc.conf.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Name = {{ inventory_hostname }}
|
||||
AddressFamily = ipv4
|
||||
Interface = {{ vpn_interface }}
|
||||
Mode = switch
|
||||
{% for host in play_hosts %}
|
||||
{% if inventory_hostname != hostvars[host]['inventory_hostname'] %}
|
||||
ConnectTo = {{ hostvars[host]['inventory_hostname'] }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue