---
- name: Setup the master node group
  hosts: localhost
  tasks:
  - import_role:
      name: openshift_aws
      tasks_from: setup_master_group.yml

- name: set the master facts for hostname to elb
  hosts: masters
  gather_facts: no
  remote_user: root
  tasks:
  - import_role:
      name: openshift_aws
      tasks_from: master_facts.yml

- name: run the init
  import_playbook: ../../init/main.yml

- name: configure the control plane
  import_playbook: ../../common/private/control_plane.yml

- name: ensure the masters are configured as nodes
  import_playbook: ../../openshift-node/private/config.yml