Skip to content

Commit

Permalink
update roles/openvpn-install-connector/tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Apr 19, 2024
1 parent d8cb77f commit 0a55226
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions playbooks/roles/openvpn-install-connector/tasks/Debian.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
---
- name: delete sessions
shell: |
set -x
for path in $(sudo openvpn3 sessions-list | grep -o '\S*/net/openvpn/\S*'); do sudo openvpn3 session-manage --path ${path} --disconnect; done
become: yes
register: shell
changed_when: shell.stdout

- name: delete configs
shell: |
set -x
for path in $(sudo openvpn3 configs-list | grep -o '\S*/net/openvpn/\S*'); do sudo openvpn3 config-remove --path ${path} --force; done
become: yes
register: shell
changed_when: shell.stdout

#- name: install connector
# shell: |
Expand Down

0 comments on commit 0a55226

Please sign in to comment.