Skip to content

Commit 84274c1

Browse files
started vpn
1 parent 4847358 commit 84274c1

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
site.retry
2+
**/.DS_Store

host_vars/vpn.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
ansible_user: vpnuser
55
ansible_ssh_pass: cantsniffthis
66
ansible_become_pass: cantsniffthis
7+

roles/vpn/tasks/configure_ca.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# Setup EasyRSA CA
3+
4+
- name:
5+
6+
- name: Init PKI
7+
command: EasyRSA-v3.0.6/easyrsa init-pki
8+
args:
9+
creates: EasyRSA-v3.0.6/pki/

roles/vpn/tasks/install_software.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
# Install openvpn/EasyRSA for the vpn server
3+
4+
- name: Install OpenVPN
5+
apt:
6+
name: "openvpn"
7+
state: present
8+
9+
- name: Download EasyRSA
10+
get_url:
11+
url: "https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.6/EasyRSA-unix-v3.0.6.tgz"
12+
dest: /tmp/easyrsa.tgz
13+
14+
- name: Uncompress EasyRSA
15+
command: tar xvzf /tmp/easyrsa.tgz
16+
args:
17+
creates: EasyRSA-v3.0.6/

roles/vpn/tasks/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
# VPN server tasks
3+
4+
- include: install_software.yml

0 commit comments

Comments
 (0)