launch.yml 1.1 KB

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