Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scriptkitties/ansible-tinc
An ansible role for installing tinc
https://github.com/scriptkitties/ansible-tinc
ansible ansible-role tinc
Last synced: 6 days ago
JSON representation
An ansible role for installing tinc
- Host: GitHub
- URL: https://github.com/scriptkitties/ansible-tinc
- Owner: scriptkitties
- Created: 2017-05-09T14:01:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-09T16:53:30.000Z (over 7 years ago)
- Last Synced: 2024-11-13T11:53:01.971Z (2 months ago)
- Topics: ansible, ansible-role, tinc
- Language: Shell
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ansible-tinc
A role for Ansible to setup [tinc][tinc].## Usage
The example playbook below should be pretty self explanatory. The `name` key is
optional for nodes. Setting this key makes the `name` key as the name to refer
to the node in tinc. If left empty, the short hostname will be used, which is
also used as the key.The `master` key is technically optional as well, but in order to have a
functional tinc network, you need at least one of these. The nodes that have a
`master` key will be used in the `ConnectTo` directives of the tinc
configuration.### Example playbook
```yaml
---
- hosts: all
vars:
network:
name: tincnet
cidr: 10.0.1.0/24
nodes:
alpha:
ip: 10.0.1.1
rsa: |
MIIBCgKCAQEAuS2aZQZoVBF33AJEQQItlHgH4rg4tbA8OriJcOq9kZ/xvr53k5q4
zubunvfkf4Bnwq4LLFDbXpOjKWjG2uZya+BTAwhyXkIcYdcf7JRv6EPmOM3G2p2q
zBSc65b92S0waEhlkI8QwpRL6C8JXQ5sAByrJYInAFbhVuRJoa5GRpUUH97Owix0
uX8zbfUFfjlGuhqpiHD+2wn9zShAWrz7TYLBIBvAtVoXr8Yx7uaVi5Ramjye0aCM
/iijMYX4FhjXRF6X4nYOPuYDI/we+I3QuBLv69vgYQm3ITM6WeqkwP+pV45dqx98
ozkzqs1p5lESUkNgOrnCK4IOJ3tIY/+deQIDAQAB
beta:
name: web1
ip: 10.0.1.2
rsa: |
MIIBCgKCAQEAuS2aZQZoVBF33AJEQQItlHgH4rg4tbA8OriJcOq9kZ/xvr53k5q4
zubunvfkf4Bnwq4LLFDbXpOjKWjG2uZya+BTAwhyXkIcYdcf7JRv6EPmOM3G2p2q
zBSc65b92S0waEhlkI8QwpRL6C8JXQ5sAByrJYInAFbhVuRJoa5GRpUUH97Owix0
uX8zbfUFfjlGuhqpiHD+2wn9zShAWrz7TYLBIBvAtVoXr8Yx7uaVi5Ramjye0aCM
/iijMYX4FhjXRF6X4nYOPuYDI/we+I3QuBLv69vgYQm3ITM6WeqkwP+pV45dqx98
ozkzqs1p5lESUkNgOrnCK4IOJ3tIY/+deQIDAQAB
ed25519: j28lWmpvjfAPgYh3+VjxLmWQSOLJyz4ynNGeGlwNc1s
gamma:
ip: 10.0.1.3
master: true
rsa: |
MIIBCgKCAQEAuS2aZQZoVBF33AJEQQItlHgH4rg4tbA8OriJcOq9kZ/xvr53k5q4
zubunvfkf4Bnwq4LLFDbXpOjKWjG2uZya+BTAwhyXkIcYdcf7JRv6EPmOM3G2p2q
zBSc65b92S0waEhlkI8QwpRL6C8JXQ5sAByrJYInAFbhVuRJoa5GRpUUH97Owix0
uX8zbfUFfjlGuhqpiHD+2wn9zShAWrz7TYLBIBvAtVoXr8Yx7uaVi5Ramjye0aCM
/iijMYX4FhjXRF6X4nYOPuYDI/we+I3QuBLv69vgYQm3ITM6WeqkwP+pV45dqx98
ozkzqs1p5lESUkNgOrnCK4IOJ3tIY/+deQIDAQAB
roles:
- tinc
```## Todo
- Add the new network to the network list to autostart
- Remove unused files in the `hosts` directory## License
[tinc]: https://www.tinc-vpn.org/