[DOC] add example
This commit is contained in:
parent
1900ac0301
commit
0326fb4ff2
34
README.md
34
README.md
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue