atomic_openshift_tutorial_reset.yml 674 B

1234567891011121314151617181920212223242526272829
  1. # This deletes *ALL* Docker images, and uninstalls OpenShift and
  2. # Atomic Enterprise RPMs. It is primarily intended for use
  3. # with the tutorial as well as for developers to reset state.
  4. #
  5. ---
  6. - include: uninstall.yml
  7. - hosts:
  8. - OSEv3:children
  9. become: yes
  10. tasks:
  11. - shell: docker ps -a -q | xargs docker stop
  12. changed_when: False
  13. failed_when: False
  14. - shell: docker ps -a -q| xargs docker rm
  15. changed_when: False
  16. failed_when: False
  17. - shell: docker images -q |xargs docker rmi
  18. changed_when: False
  19. failed_when: False
  20. - user: name={{ item }} state=absent remove=yes
  21. with_items:
  22. - alice
  23. - joe