summaryrefslogtreecommitdiffstats
path: root/roles/contiv_auth_proxy/tasks/cleanup.yml
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-06-18 22:21:48 -0400
committerGitHub <noreply@github.com>2017-06-18 22:21:48 -0400
commit865b3511d3df6fa5d938dda72e9d748c6c615c76 (patch)
treed28a590c30f208d9436e5aee3802dd4ea259e94a /roles/contiv_auth_proxy/tasks/cleanup.yml
parent9545204f504f1dcf3de18272dc1fb951dd15f486 (diff)
parent76d1ee25b7570add1531ba232c46977d7201a122 (diff)
downloadopenshift-865b3511d3df6fa5d938dda72e9d748c6c615c76.tar.gz
openshift-865b3511d3df6fa5d938dda72e9d748c6c615c76.tar.bz2
openshift-865b3511d3df6fa5d938dda72e9d748c6c615c76.tar.xz
openshift-865b3511d3df6fa5d938dda72e9d748c6c615c76.zip
Merge pull request #4329 from srampal/rhel_ose_aci
Merged by openshift-bot
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 }}"