- name: Remove existing copy of boinc-server-docker
  file: path="{{base_dir}}/boinc-server-docker" state=absent

- name: "Clone boinc-server-docker to {{base_dir}}"
  command: git clone https://github.com/BOINC/boinc-server-docker.git chdir="{{base_dir}}"

- name: Init some submodules
  command: git submodule init images/makeproject/boinc2docker images/makeproject/html/inc/phpmailer chdir="{{base_dir}}/boinc-server-docker"

- name: "Fetch some submodules for boinc-server-docker in {{base_dir}}"
  command: git submodule update images/makeproject/boinc2docker images/makeproject/html/inc/phpmailer chdir="{{base_dir}}/boinc-server-docker"

