diff options
author | B Stack <bgstack15@gmail.com> | 2017-03-13 13:41:59 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2017-03-13 13:41:59 -0400 |
commit | bb4ab4dec95b9dc2a33b196f8d973c81c0f5fc00 (patch) | |
tree | cabf7d9b887bc9c4c5f2f2d6574d127fe6670b4c /handlers | |
download | ansible-ssh-tunnel-for-proxy-bb4ab4dec95b9dc2a33b196f8d973c81c0f5fc00.tar.gz ansible-ssh-tunnel-for-proxy-bb4ab4dec95b9dc2a33b196f8d973c81c0f5fc00.tar.bz2 ansible-ssh-tunnel-for-proxy-bb4ab4dec95b9dc2a33b196f8d973c81c0f5fc00.zip |
Diffstat (limited to 'handlers')
-rw-r--r-- | handlers/main.yml | 5 |
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 |