-
Notifications
You must be signed in to change notification settings - Fork 207
/
converge.yml
46 lines (41 loc) · 1.11 KB
/
converge.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
---
- name: Converge
hosts: all
vars:
# EasyRSA
easyrsa_generate_dh: true
easyrsa_servers:
- name: server
easyrsa_clients:
- name: client1
- name: client2
easyrsa_pki_dir: /etc/easyrsa/pki
# OpenVPN
openvpn_keydir: "{{ easyrsa_pki_dir }}"
openvpn_clients: "{{ easyrsa_clients | map(attribute='name') | list }}"
openvpn_download_dir: /tmp/
openvpn_ccd_configs:
- name: client1
content: '# pass'
- name: client2
content: '# pass'
## scripting
openvpn_script_output_directories:
- /var/log/openvpn-script-out/
openvpn_script_files:
- scripts/client-disconnect.sh.j2
openvpn_inline_scripts:
- name: my-up-script.sh
content: |
#!/usr/bin/env
echo 'Up!' >> "/var/up.log"
# Enabled them
openvpn_download_clients: false
openvpn_open_firewall: false
openvpn_route_traffic: false
openvpn_unified_client_profiles: false
openvpn_management_enable: false
openvpn_client_to_client_via_ip: false
roles:
- role: nkakouros.easyrsa
- role: Stouts.openvpn