add_nodes.yml 879 B

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. - name: Launch instance(s)
  3. hosts: localhost
  4. connection: local
  5. become: no
  6. gather_facts: no
  7. vars_files:
  8. - vars.yml
  9. vars:
  10. oo_extend_env: True
  11. tasks:
  12. - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
  13. vars:
  14. type: "compute"
  15. count: "{{ num_nodes }}"
  16. - include: tasks/launch_instances.yml
  17. vars:
  18. instances: "{{ node_names }}"
  19. cluster: "{{ cluster_id }}"
  20. type: "{{ k8s_type }}"
  21. g_sub_host_type: "{{ sub_host_type }}"
  22. - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
  23. vars:
  24. type: "infra"
  25. count: "{{ num_infra }}"
  26. - include: tasks/launch_instances.yml
  27. vars:
  28. instances: "{{ node_names }}"
  29. cluster: "{{ cluster_id }}"
  30. type: "{{ k8s_type }}"
  31. g_sub_host_type: "{{ sub_host_type }}"
  32. - include: scaleup.yml
  33. - include: list.yml