install.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ---
  2. - name: Health Check Checkpoint Start
  3. hosts: all
  4. gather_facts: false
  5. tasks:
  6. - name: Set Health Check 'In Progress'
  7. run_once: true
  8. set_stats:
  9. data:
  10. installer_phase_health:
  11. status: "In Progress"
  12. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  13. - name: OpenShift Health Checks
  14. hosts: oo_all_hosts
  15. any_errors_fatal: true
  16. roles:
  17. - openshift_health_checker
  18. vars:
  19. - r_openshift_health_checker_playbook_context: install
  20. post_tasks:
  21. - name: Run health checks (install) - EL
  22. when: ansible_distribution != "Fedora"
  23. action: openshift_health_check
  24. args:
  25. checks:
  26. - disk_availability
  27. - memory_availability
  28. - package_availability
  29. - package_version
  30. - docker_image_availability
  31. - docker_storage
  32. - name: Run health checks (install) - Fedora
  33. when: ansible_distribution == "Fedora"
  34. action: openshift_health_check
  35. args:
  36. checks:
  37. - docker_image_availability
  38. - name: Health Check Checkpoint End
  39. hosts: all
  40. gather_facts: false
  41. tasks:
  42. - name: Set Health Check 'Complete'
  43. run_once: true
  44. set_stats:
  45. data:
  46. installer_phase_health:
  47. status: "Complete"
  48. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"