main.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ---
  2. # l_install_base_packages is passed in via prerequistes.yml.
  3. # skip_sanity_checks is passed in via openshift-node/private/image_prep.yml
  4. - name: Initialization Checkpoint Start
  5. hosts: all
  6. gather_facts: false
  7. roles:
  8. - installer_checkpoint
  9. tasks:
  10. - name: Set install initialization 'In Progress'
  11. run_once: true
  12. set_stats:
  13. data:
  14. installer_phase_initialize:
  15. title: "Initialization"
  16. playbook: ""
  17. status: "In Progress"
  18. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  19. - import_playbook: evaluate_groups.yml
  20. - import_playbook: basic_facts.yml
  21. # NOTE: we must call init repos before installing base packages
  22. # because they may come from the repos.
  23. - import_playbook: repos.yml
  24. # base_packages needs to be setup for openshift_facts.py to run correctly.
  25. - import_playbook: base_packages.yml
  26. when: l_install_base_packages | default(False) | bool
  27. - import_playbook: cluster_facts.yml
  28. - import_playbook: version.yml
  29. - import_playbook: sanity_checks.yml
  30. when: not (skip_sanity_checks | default(False))
  31. - name: Initialization Checkpoint End
  32. hosts: all
  33. gather_facts: false
  34. tasks:
  35. - name: Set install initialization 'Complete'
  36. run_once: true
  37. set_stats:
  38. data:
  39. installer_phase_initialize:
  40. status: "Complete"
  41. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"