- hosts: all
  become_user: root
  vars_files:
    - "{{ playbook_dir }}/vars.yml"
  tags:
    - setup
  tasks:
    - name: set up the system
      include: system.yml

    - name: install Golang tools
      include: golang.yml
      vars:
        version: "1.11.4"

    - name: clone build and install openshift 
      include: "build/openshift.yml"

- hosts: all
  vars_files:
    - "{{ playbook_dir }}/vars.yml"
  tags:
    - integration
  tasks:
    - name: clone build and install ovn-kubernetes
      include: "build/ovnkube.yml"
    - name: run openshift-dind tests
      include: "openshift-dind-test.yml"
