forked from ftao/vpn-deploy-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.yml
82 lines (69 loc) · 2.08 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
# A playbook for testing all roles.
- hosts: test
sudo: yes
roles:
- common
# Auth *********************************************************************
- webserver
- db
- role: auth
mysql_root_password: "TEST_ONLY"
- radius-admin
# PPTP *********************************************************************
# setup auth via radius
- role: ppp-radiusclient
when: pptp_use_radius
device_type: pptp
radius_servers: "{{ pptp_radius_servers }}"
# nat role will setup firewall
- nat
# L2TP *********************************************************************
- ipsec-sw
# proxy-backend ************************************************************
- role: ss-server
name: "default"
port: "8858"
password: "TEST_ONLY"
enalbe_udp: "false"
shadowsocks_provider: "python"
- role: ss-server
name: "udp_relay"
port: "8859"
password: "TEST_ONLY"
enalbe_udp: "true"
shadowsocks_provider: "libev"
# COW **********************************************************************
- role: cow
- role: "cow/frontend"
- role: "cow/backend"
# proxy-frontend ***********************************************************
- pptp
# setup auth via radius
- role: ppp-radiusclient
when: pptp_use_radius
device_type: pptp
radius_servers: ${pptp_radius_servers}
- role: ss-client
name: "redir"
port: "5382"
mode: "redir"
server_host: "127.0.0.1"
server_port: "5381"
password: "TEST_ONLY"
- role: ss-client
name: "dns_tunnel"
port: "5383"
mode: "tunnel"
tunnel_target: "8.8.8.8:53"
enable_udp: true
server_host: "127.0.0.1"
server_port: "5381"
password: "TEST_ONLY"
- role: redir
tcp_redir_port: "{{ proxy_frontend_redir_port }}"
dns_redir_port: 53
- role: dns
default_resolver: "127.0.0.1#{{ proxy_frontend_dns_tunnel_port }}"
# OpenVPN ******************************************************************
- openvpn