summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-cluster/launch.yml
blob: 33e1ec25ddf8f6a88e77e83430aa4a1ba863d377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- name: Launch instance(s)
  hosts: localhost
  connection: local
  gather_facts: no
  vars_files:
  - vars.yml
  - ["vars.{{ deployment_type }}.{{ cluster_id }}.yml", vars.defaults.yml]
  tasks:
  - fail:
      msg: Deployment type not supported for aws provider yet
    when: deployment_type == 'enterprise'

  - include: ../../common/openshift-cluster/set_master_launch_facts_tasks.yml
  - include: tasks/launch_instances.yml
    vars:
      instances: "{{ master_names }}"
      cluster: "{{ cluster_id }}"
      type: "{{ k8s_type }}"

  - include: ../../common/openshift-cluster/set_node_launch_facts_tasks.yml
  - include: tasks/launch_instances.yml
    vars:
      instances: "{{ node_names }}"
      cluster: "{{ cluster_id }}"
      type: "{{ k8s_type }}"

  - set_fact:
      a_master: "{{ master_names[0] }}"
  - add_host: name={{ a_master }} groups=service_master

- include: update.yml

- include: ../../common/openshift-cluster/create_services.yml
  vars:
     g_svc_master: "{{ service_master }}"

- include: list.yml