summaryrefslogtreecommitdiffstats
path: root/roles/contiv_auth_proxy/tasks/cleanup.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/contiv_auth_proxy/tasks/cleanup.yml')
-rw-r--r--roles/contiv_auth_proxy/tasks/cleanup.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/contiv_auth_proxy/tasks/cleanup.yml b/roles/contiv_auth_proxy/tasks/cleanup.yml
new file mode 100644
index 000000000..a29659cc9
--- /dev/null
+++ b/roles/contiv_auth_proxy/tasks/cleanup.yml
@@ -0,0 +1,10 @@
+---
+
+- name: stop auth-proxy container
+ service: name=auth-proxy state=stopped
+
+- name: cleanup iptables for auth proxy
+ shell: iptables -D INPUT -p tcp --dport {{ item }} -j ACCEPT -m comment --comment "{{ auth_proxy_rule_comment }} ({{ item }})"
+ become: true
+ with_items:
+ - "{{ auth_proxy_port }}"