---

- name: clone openshift origin source repo
  git:
    repo: "https://github.com/openshift/origin.git"
    dest: "{{ ansible_env.GOPATH }}/src/github.com/openshift/origin"
    force: "{{ force_clone | default(False) | bool}}"

- name: build openshift 
  make:
    chdir: "{{ ansible_env.GOPATH }}/src/github.com/openshift/origin"

- name: build dind images
  shell: "hack/build-dind-images.sh"
  args:
    chdir: "{{ ansible_env.GOPATH }}/src/github.com/openshift/origin"
