Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
79138f16
Commit
79138f16
authored
Jan 16, 2020
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add VPN base configuration to clients
parent
718f0a24
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
+40
-0
roles/clients/files/kit-vpn2vlan.ovpn
roles/clients/files/kit-vpn2vlan.ovpn
+16
-0
roles/clients/tasks/main.yml
roles/clients/tasks/main.yml
+1
-0
roles/clients/tasks/vpn.yml
roles/clients/tasks/vpn.yml
+23
-0
No files found.
roles/clients/files/kit-vpn2vlan.ovpn
0 → 100644
View file @
79138f16
client
remote 141.52.8.19
port 1194
dev tap
proto udp
auth-user-pass
nobind
comp-lzo no
tls-version-min 1.2
ca /etc/ssl/certs/ca-bundle.crt
verify-x509-name "C=DE, ST=Baden-Wuerttemberg, L=Karlsruhe, O=Karlsruhe Institute of Technology, OU=Steinbuch Centre for Computing, CN=ovpn.scc.kit.edu" subject
cipher AES-256-CBC
auth SHA384
reneg-sec 43200
verb 3
script-security 2
roles/clients/tasks/main.yml
View file @
79138f16
...
...
@@ -3,4 +3,5 @@
tags
:
printer
-
import_tasks
:
basic_software.yml
-
import_tasks
:
kill_x.yml
-
import_tasks
:
vpn.yml
-
import_tasks
:
ms_fonts.yml
roles/clients/tasks/vpn.yml
0 → 100644
View file @
79138f16
---
-
name
:
install OpenVPN client
become
:
yes
dnf
:
name
:
[
"
openvpn"
,
"
NetworkManager-openvpn"
]
state
:
present
# - name: install network manager for ansible
# become: yes
# dnf:
# name: ["NetworkManager-glib", "libnm-qt-devel", "nm-connection-editor", "libsemanage-python", "policycoreutils-python"]
# state: present
-
name
:
get configuration file from SCC
# https://www.scc.kit.edu/dienste/10100.php
become
:
yes
copy
:
src
:
kit-vpn2vlan.ovpn
dest
:
/etc/kit-vpn2vlan.ovpn
backup
:
yes
when
:
ansible_distribution == "Fedora"
# unfortunately you have to install the VPN on your own using the GUI tool NetworkManager.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment