aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2017-03-13 13:41:59 -0400
committerB Stack <bgstack15@gmail.com>2017-03-13 13:41:59 -0400
commitbb4ab4dec95b9dc2a33b196f8d973c81c0f5fc00 (patch)
treecabf7d9b887bc9c4c5f2f2d6574d127fe6670b4c /handlers
downloadansible-ssh-tunnel-for-proxy-master.tar.gz
ansible-ssh-tunnel-for-proxy-master.tar.bz2
ansible-ssh-tunnel-for-proxy-master.zip
initial commitHEADmaster
Diffstat (limited to 'handlers')
-rw-r--r--handlers/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/handlers/main.yml b/handlers/main.yml
new file mode 100644
index 0000000..df6cede
--- /dev/null
+++ b/handlers/main.yml
@@ -0,0 +1,5 @@
+---
+# File: /etc/ansible/roles/use-proxy/handlers/main.yml
+
+- name: stop ssh tunnel
+ shell: ps -ef | grep -iE -- "ss[h].*{{local_proxy_port}}" | awk '{print $2}' | xargs kill -9
bgstack15