image_prep.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. - name: normalize groups
  3. import_playbook: ../../prerequisites.yml
  4. vars:
  5. skip_sanity_checks: True
  6. skip_validate_hostnames: True
  7. l_openshift_version_determine_hosts: "oo_nodes_to_config"
  8. l_openshift_version_set_hosts: "all:!all"
  9. - name: run node config setup
  10. import_playbook: disable_excluders.yml
  11. - name: run node config
  12. import_playbook: configure_nodes.yml
  13. - name: node bootstrap config
  14. hosts: oo_nodes_to_config
  15. tasks:
  16. - import_role:
  17. name: openshift_node
  18. tasks_from: bootstrap.yml
  19. - import_role:
  20. name: openshift_node_group
  21. tasks_from: bootstrap.yml
  22. - when:
  23. - openshift_node_include_control_plane | default(False)
  24. block:
  25. - import_role:
  26. name: etcd
  27. tasks_from: static.yml
  28. - import_role:
  29. name: openshift_control_plane
  30. tasks_from: static_shim.yml
  31. - import_role:
  32. name: openshift_control_plane
  33. tasks_from: static.yml
  34. vars:
  35. openshift_control_plane_apply_cluster_signing_config: False
  36. - name: Re-enable excluders
  37. import_playbook: enable_excluders.yml
  38. - name: Remove any undesired artifacts from build
  39. import_playbook: clean_image.yml