summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-11-19 08:43:22 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-11-19 10:23:54 -0500
commitdf74a04e92b267a711e69b26dd0c7cd5375797c9 (patch)
tree45c9b14385ac4a1da3c201648012e6741c025d28 /playbooks/adhoc
parent631132c2f0e043b2d86bfd999eef5be001090eeb (diff)
downloadopenshift-df74a04e92b267a711e69b26dd0c7cd5375797c9.tar.gz
openshift-df74a04e92b267a711e69b26dd0c7cd5375797c9.tar.bz2
openshift-df74a04e92b267a711e69b26dd0c7cd5375797c9.tar.xz
openshift-df74a04e92b267a711e69b26dd0c7cd5375797c9.zip
Making the uninstall playbook more flexible
This handles stage environments as well as the eventual change of aep3_beta to aep3
Diffstat (limited to 'playbooks/adhoc')
-rw-r--r--playbooks/adhoc/uninstall.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/playbooks/adhoc/uninstall.yml b/playbooks/adhoc/uninstall.yml
index 1a55eb053..538414508 100644
--- a/playbooks/adhoc/uninstall.yml
+++ b/playbooks/adhoc/uninstall.yml
@@ -111,12 +111,12 @@
- atomic-enterprise
- origin
- - shell: docker ps -a | grep Exited | grep "{{ item }}" | awk '{print $1}'
+ - shell: docker ps -a | grep Exited | egrep "{{ item }}" | awk '{print $1}'
changed_when: False
failed_when: False
register: exited_containers_to_delete
with_items:
- - aep3/aep
+ - aep3.*/aep
- openshift3/ose
- openshift/origin
@@ -125,13 +125,13 @@
failed_when: False
with_items: "{{ exited_containers_to_delete.results }}"
- - shell: docker images | grep {{ item }} | awk '{ print $3 }'
+ - shell: docker images | egrep {{ item }} | awk '{ print $3 }'
changed_when: False
failed_when: False
register: images_to_delete
with_items:
- - registry.access.redhat.com/openshift3
- - registry.access.redhat.com/aep3
+ - registry\.access\..*redhat\.com/openshift3
+ - registry\.access\..*redhat\.com/aep3
- docker.io/openshift
- shell: "docker rmi -f {{ item.stdout_lines | join(' ') }}"