فهرست منبع

adhoc/tutorial_reset: Don't error out if there are no Docker images

I'd like this playbook to always work.
Colin Walters 9 سال پیش
والد
کامیت
d565411ae9
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      playbooks/adhoc/atomic_openshift_tutorial_reset.yml

+ 3 - 0
playbooks/adhoc/atomic_openshift_tutorial_reset.yml

@@ -61,12 +61,15 @@
 
     - shell: docker ps -a -q | xargs docker stop
       changed_when: False
+      failed_when: False
 
     - shell: docker ps -a -q| xargs docker rm
       changed_when: False
+      failed_when: False
 
     - shell:  docker images -q |xargs docker rmi
       changed_when: False
+      failed_when: False
 
     - file: path={{ item }} state=absent
       with_items: