diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-19 08:43:22 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-19 10:23:54 -0500 |
commit | df74a04e92b267a711e69b26dd0c7cd5375797c9 (patch) | |
tree | 45c9b14385ac4a1da3c201648012e6741c025d28 /playbooks/adhoc/uninstall.yml | |
parent | 631132c2f0e043b2d86bfd999eef5be001090eeb (diff) | |
download | openshift-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/uninstall.yml')
-rw-r--r-- | playbooks/adhoc/uninstall.yml | 10 |
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(' ') }}" |