summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-06-22 16:17:33 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-06-23 16:46:31 -0300
commit6b1bdb2de51402d5d0800fcd0a5048418047cc27 (patch)
tree2c8d61dc757b0e5dca460745359da93c2ac3b0d6
parent74cb9eb24b80d2f3146fc27c1cc7c34ccc47a1a5 (diff)
downloadopenshift-6b1bdb2de51402d5d0800fcd0a5048418047cc27.tar.gz
openshift-6b1bdb2de51402d5d0800fcd0a5048418047cc27.tar.bz2
openshift-6b1bdb2de51402d5d0800fcd0a5048418047cc27.tar.xz
openshift-6b1bdb2de51402d5d0800fcd0a5048418047cc27.zip
Allow flag to uninstall playbook to preserve images.
Default is still True, but allow devs to specify False in inventory to avoid having to re-download all images. With upcoming changes the actual images present on the system will have no effect on what gets run.
-rw-r--r--playbooks/adhoc/uninstall.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/playbooks/adhoc/uninstall.yml b/playbooks/adhoc/uninstall.yml
index 3d6de2d17..4edd44fe4 100644
--- a/playbooks/adhoc/uninstall.yml
+++ b/playbooks/adhoc/uninstall.yml
@@ -143,11 +143,13 @@
- registry\.qe\.openshift\.com/.*
- registry\.access\..*redhat\.com/rhel7/etcd
- docker.io/openshift
+ when: openshift_uninstall_images | default(True) | bool
- shell: "docker rmi -f {{ item.stdout_lines | join(' ') }}"
changed_when: False
failed_when: False
with_items: "{{ images_to_delete.results }}"
+ when: openshift_uninstall_images | default(True) | bool
- name: Remove sdn drop files
file: