bootstrap.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ---
  2. - name: Node Preparation Checkpoint Start
  3. hosts: all
  4. gather_facts: false
  5. tasks:
  6. - name: Set Node preparation 'In Progress'
  7. run_once: true
  8. set_stats:
  9. data:
  10. installer_phase_node:
  11. title: "Node Preparation"
  12. playbook: "(no entry point playbook)"
  13. status: "In Progress"
  14. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  15. - name: Only target nodes that have not yet been bootstrapped
  16. hosts: localhost
  17. tasks:
  18. - add_host:
  19. name: "{{ item }}"
  20. groups: oo_exclude_bootstrapped_nodes
  21. ansible_ssh_user: "{{ g_ssh_user | default(omit) }}"
  22. ansible_become: "{{ g_sudo | default(omit) }}"
  23. with_items: "{{ groups.oo_nodes_to_bootstrap | default([]) }}"
  24. changed_when: no
  25. when: hostvars[item].openshift_is_bootstrapped | default(False) | bool
  26. - import_playbook: disable_excluders.yml
  27. vars:
  28. l_node_group: oo_nodes_to_bootstrap:!oo_exclude_bootstrapped_nodes
  29. - import_playbook: configure_nodes.yml
  30. vars:
  31. l_node_group: oo_nodes_to_bootstrap:!oo_exclude_bootstrapped_nodes
  32. - import_playbook: configure_bootstrap.yml
  33. - import_playbook: enable_excluders.yml
  34. vars:
  35. l_node_group: oo_nodes_to_bootstrap:!oo_exclude_bootstrapped_nodes
  36. - import_playbook: clean_image.yml
  37. vars:
  38. l_node_group: oo_nodes_to_bootstrap:!oo_exclude_bootstrapped_nodes
  39. - name: Node Preparation Checkpoint End
  40. hosts: all
  41. gather_facts: false
  42. tasks:
  43. - name: Set Node preparation 'Complete'
  44. run_once: true
  45. set_stats:
  46. data:
  47. installer_phase_node:
  48. status: "Complete"
  49. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"