Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ansible-roles
Openvpn Client
Commits
92bc4c9a
Commit
92bc4c9a
authored
2 years ago
by
Пальмин Альберт
Browse files
Options
Download
Email Patches
Plain Diff
fix
parent
2ea401be
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+1
-0
defaults/main.yml
tasks/main.yml
+5
-0
tasks/main.yml
with
6 additions
and
0 deletions
+6
-0
defaults/main.yml
View file @
92bc4c9a
---
config_file_name
:
test1-openvpn-server1.ovpn
#вписать имя того, который скопировали в директорию files
This diff is collapsed.
Click to expand it.
tasks/main.yml
View file @
92bc4c9a
...
...
@@ -11,6 +11,10 @@
-
traceroute
tags
:
start
-
name
:
killall openvpn
#для остановки предыдущих сессий
shell
:
killall openvpn
tags
:
start
-
name
:
rm_others
#удаление других конфигураций чтобы одно на другое на наложилось
shell
:
rm ~/*.ovpn
tags
:
start
...
...
@@ -19,6 +23,7 @@
copy
:
src
:
../files/{{ config_file_name }}
dest
:
~/{{ config_file_name }}
notify
:
restart
tags
:
start
-
name
:
openvpn config
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help