Skip to content

Commit 74ba028

Browse files
committed
roles: add easyrsa to build CA and client&server certificates
1 parent eca125b commit 74ba028

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

ansible/list.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
- { role: nemea-status, tags: nemea-status }
1212
- { role: main-page, tags: main-page }
1313
- { role: warden-client, tags: warden-client }
14+
- { role: easyrsa, tags: easyrsa }
1415
- { role: fail2ban, tags: fail2ban }
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- name: Download EasyRSA archive
2+
get_url:
3+
url: "{{ easyrsa_src.url }}"
4+
dest: "{{ easyrsa_src.dest }}"
5+
6+
- name: Extract EasyRSA
7+
shell: |
8+
mkdir -p "{{ easyrsa_src.creates }}"
9+
tar -C "{{ easyrsa_src.creates }}" --strip-components=1 -xzf "{{ easyrsa_src.dest }}"
10+
rm "{{ easyrsa_src.dest }}"
11+
args:
12+
creates: "{{ easyrsa_src.creates }}"
13+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- name: EasyRSA install
2+
include: install.yml
3+
tags: install
4+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
easyrsa_tmp: "/tmp"
2+
3+
easyrsa_src: {
4+
url: "https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.6/EasyRSA-unix-v3.0.6.tgz",
5+
dest: "{{ easyrsa_tmp }}/EasyRSA-unix-v3.0.6.tgz",
6+
creates: "/opt/easyrsa"
7+
}
8+

0 commit comments

Comments
 (0)