diff --git a/README.md b/README.md index 94625be..8a92ae1 100644 --- a/README.md +++ b/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