---

#- name: Download
#  git:
#    repo: "https://github.com/ImageMarkup/isic-archive.git"
#    dest: "{{ isic_archive_path }}"
##    version: "{{ isic_archive_version }}"
#    update: no
#    force: yes
#  notify: Build Girder

- name: Symlink
  file:
    src: "{{ isic_archive_path }}"
    dest: "{{ girder_path }}/plugins/isic_archive"
    state: link
  notify: Build Girder

- name: Install package dependencies
  apt:
    name: "{{ item }}"
  sudo: yes
  with_items:
    - p7zip-full

- name: Install Conda dependencies
  conda:
    name: "{{ item }}"
    executable: "{{ python_dist_path }}/bin/conda"
  with_items:
    - anaconda
    - opencv
    - cffi

- name: Install Python dependencies
  pip:
    name: "{{ item }}"
    virtualenv: "{{ python_dist_path }}"
  with_items:
    - geojson
    - pillow
    - enum34

## TODO: local config

---

#- name: Download
#  git:
#    repo: "https://github.com/ImageMarkup/isic-archive.git"
#    dest: "{{ isic_archive_path }}"
##    version: "{{ isic_archive_version }}"
#    update: no
#    force: yes
#  notify: Build Girder

- name: Symlink
  file:
    src: "{{ isic_archive_path }}"
    dest: "{{ girder_path }}/plugins/isic_archive"
    state: link
  notify: Build Girder

- name: Install package dependencies
  apt:
    name: "{{ item }}"
  sudo: yes
  with_items:
    - p7zip-full

- name: Install Conda dependencies
  conda:
    name: "{{ item }}"
    executable: "{{ python_dist_path }}/bin/conda"
  with_items:
    - scikit-image
    - opencv
    - cffi

- name: Install Python dependencies
  pip:
    name: "{{ item }}"
    virtualenv: "{{ python_dist_path }}"
  with_items:
    - geojson
    - pillow
    - enum34

## TODO: local config

Remove extra Conda package from Ansible
Remove extra Conda package from Ansible
