launch.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. - name: Launch instance(s)
  3. hosts: localhost
  4. connection: local
  5. gather_facts: no
  6. vars_files:
  7. - vars.yml
  8. - ["vars.{{ deployment_type }}.{{ cluster_id }}.yml", vars.defaults.yml]
  9. tasks:
  10. - fail:
  11. msg: Deployment type not supported for aws provider yet
  12. when: deployment_type == 'enterprise'
  13. - include: ../../common/openshift-cluster/set_master_launch_facts_tasks.yml
  14. - include: tasks/launch_instances.yml
  15. vars:
  16. instances: "{{ master_names }}"
  17. cluster: "{{ cluster_id }}"
  18. type: "{{ k8s_type }}"
  19. - include: ../../common/openshift-cluster/set_node_launch_facts_tasks.yml
  20. - include: tasks/launch_instances.yml
  21. vars:
  22. instances: "{{ node_names }}"
  23. cluster: "{{ cluster_id }}"
  24. type: "{{ k8s_type }}"
  25. - set_fact:
  26. a_master: "{{ master_names[0] }}"
  27. - add_host: name={{ a_master }} groups=service_master
  28. - include: update.yml
  29. - include: ../../common/openshift-cluster/create_services.yml
  30. vars:
  31. create_services__master: "{{ service_master }}"
  32. - include: list.yml