Explorar o código

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.
Devan Goodwin %!s(int64=8) %!d(string=hai) anos
pai
achega
6b1bdb2de5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      playbooks/adhoc/uninstall.yml

+ 2 - 0
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: