[DOC] add example

This commit is contained in:
Jannik Beyerstedt 2019-11-03 16:58:13 +01:00
parent 1900ac0301
commit 0326fb4ff2
1 changed files with 33 additions and 1 deletions

View File

@ -35,7 +35,39 @@ none
Example Playbook
----------------
TODO
Hostfile:
```
tinc:
vars:
tinc_vpn_net: 172.16.1.0/24
tinc_remote_nets:
- net_cidr: 192.168.1.0/24
gateway: 172.16.1.2
hosts:
central_server:
tinc_public_addr: central_server.example.com
tinc_client_ip: 172.16.1.1
remote_gateway:
tinc_client_ip: 172.16.1.2
localhost:
tinc_client_ip: 172.16.1.3
```
Playbook:
```
- name: Install tinc
hosts: tinc
roles:
- tinc
- name: Distribute hostfiles
hosts: tinc
tasks:
- name: Tinc - Distribute hostfiles
import_role:
name: tinc
tasks_from: distribute
```
License