tutorial-reset.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. - hosts:
  5. - OSEv3:children
  6. sudo: yes
  7. tasks:
  8. - service: name={{ item }} state=stopped
  9. with_items:
  10. - docker
  11. - atomic-enterprise-master
  12. - atomic-enterprise-node
  13. - yum: name={{ item }} state=absent
  14. with_items:
  15. - openvswitch
  16. - atomic-enterprise
  17. - atomic-enterprise-master
  18. - atomic-enterprise-node
  19. - atomic-enterprise-sdn-ovs
  20. - tuned-profiles-atomic-enterprise-node
  21. - shell: systemctl reset-failed
  22. changed_when: False
  23. - shell: systemctl daemon-reload
  24. changed_when: False
  25. - shell: find /var/lib/atomic-enterprise/openshift.local.volumes -type d -exec umount {} \; 2>/dev/null || true
  26. changed_when: False
  27. - file: path={{ item }} state=absent
  28. with_items:
  29. - /var/lib/atomic-enterprise
  30. - /etc/sysconfig/atomic-enterprise
  31. - /etc/atomic-enterprise
  32. - /etc/openshift
  33. - /var/lib/docker
  34. - user: name={{ item }} state=absent remove=yes
  35. with_items:
  36. - alice
  37. - joe