forked from ftao/vpn-deploy-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipsec-lte.yml
31 lines (25 loc) · 905 Bytes
/
ipsec-lte.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
---
# please try ansible-galaxy install -r requirements.yml first
- hosts: ipsec
roles:
- common
- role: thefinn93.letsencrypt
letsencrypt_cert_domains:
- "{{ ipsec_domain }}"
tags:
- letsencrypt
- role: strongswan
ipsec_enable_ikev2: true
ipsec_cert_source: "remote"
ipsec_ca_cert: "/etc/letsencrypt/live/{{ ipsec_domain }}/chain.pem"
ipsec_server_cert: "/etc/letsencrypt/live/{{ ipsec_domain }}/cert.pem"
ipsec_server_key: "/etc/letsencrypt/live/{{ ipsec_domain }}/privkey.pem"
tags:
- strongswan
- role: l2tp
when: ipsec_enable_l2tp is defined and ipsec_enable_l2tp
- role: ppp-radiusclient
when: (ipsec_enable_l2tp is defined) and ipsec_enable_l2tp and (l2tp_use_radius is defined) and l2tp_use_radius
device_type: l2tp
radius_servers: "{{ l2tp_radius_servers }}"
- nat