Commit 894af961 authored by Пальмин Альберт's avatar Пальмин Альберт
Browse files

fix

parent f9151703
1 merge request!3Dev
Showing with 10 additions and 4 deletions
+10 -4
---
- name: start vpn connect
shell: openvpn --config ~/for-servers.ovpn & #выполняет задачу в фоне
shell: openvpn --config ~/vpn/for-servers.ovpn & #выполняет задачу в фоне
......@@ -16,7 +16,7 @@
tags: start
- name: Deleting all other configurations #удаление других конфигураций чтобы одно на другое на наложилось
shell: rm ~/*.ovpn || true
shell: rm ~/vpn/*.ovpn || true
tags: start
- name: Started openvpn-client #служба должна быть просто запущена. Это не включение VPN соединения
......@@ -42,10 +42,16 @@
become: no
tags: start
- name: Creates directory for config
file:
path: ~/vpn
state: directory
tags: start
- name: Copy *.ovpn file #копирование найденного файла на сервер и запуск подключения. Подключение занимает секунд 5-7
ansible.builtin.copy:
src: "{{item.path}}"
dest: "~/for-servers.ovpn"
dest: "~/vpn/for-servers.ovpn"
with_items:
- "{{find_result_ovpn.files}}"
notify:
......@@ -64,5 +70,5 @@
tags: stop
- name: Deleting all other configurations #удаление других конфигураций чтобы одно на другое на наложилось
shell: rm ~/*.ovpn || true
shell: rm ~/vpn/*.ovpn || true
tags: stop
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment