Ansible role to manage Tinc VPN
tinc_enabled: yes # The role in enabled
tinc_netname: net # Tinc Name of VPN network
tinc_vpn_interface: tun0 # Tinc VPN Interface
# Hostnames to connect
tinc_hosts: []
# Host Physical IP
tinc_physical_ip: "{{ansible_eth0.ipv4.address}}"
tinc_ip: 10.1.4.1 # Tinc VPN IP
tinc_vpn_netmask: 255.255.255.0 # Tinc VPN Netmask
tinc_vpn_cidr_netmask: 32 # Tinc VPN CIDR
Add Stouts.tinc
to your roles and setup your inventory and playbooks.
Example (inventory):
[vpn]
host1 tinc_ip=10.1.4.10 ansible_ssh_host=11.11.11.10
host2 tinc_ip=10.1.4.20 ansible_ssh_host=11.11.11.20
host3 tinc_ip=10.1.4.30 ansible_ssh_host=11.11.11.30
- hosts: all
roles:
- Stouts.tinc
vars:
tinc_physical_ip: "{{ansible_ssh_host}}"
Licensed under the MIT License. See the LICENSE file for details.
Are welcome!