---

- include: create_swap_file.yml
  when: create_swap_file
  tags: swap

- name: Ensure bash, OpenSSl, and libssl are the latest versions
  apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest
  with_items:
    - bash
    - openssl
    - libssl-dev
    - libssl-doc
  tags: packages

- name: Install base packages
  apt: name={{ item }} update_cache={{ update_apt_cache }} force=yes state=installed
  with_items:
    - build-essential
    - ntp
    - htop
    - git
    - libpq-dev
    - python-dev
    - python-pip
    - python-pycurl
    - python-psycopg2
    - supervisor
    - binutils
    - libproj-dev
    - gdal-bin
    - python-gdal
  tags: packages

- name: Install virtualenv
  pip: name=virtualenv
  tags: packages

- name: Install virtualenv
  pip: name=virtualenvwrapper
  tags: packages

- name: copy esri extras
  copy: src=files/esri_extra.wkt dest=/usr/share/gdal/1.10 mode=0644

---

- include: create_swap_file.yml
  when: create_swap_file
  tags: swap

- name: Ensure bash, OpenSSl, and libssl are the latest versions
  apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest
  with_items:
    - bash
    - openssl
    - libssl-dev
    - libssl-doc
  tags: packages

- name: Install base packages
  apt: name={{ item }} update_cache={{ update_apt_cache }} force=yes state=installed
  with_items:
    - build-essential
    - ntp
    - htop
    - git
    - libpq-dev
    - python-dev
    - python-pip
    - python-pycurl
    - python-psycopg2
    - supervisor
    - binutils
    - libproj-dev
    - gdal-bin
    - python-gdal
    - libpng-dev
    - libfreetype6-dev
    - pkg-config
  tags: packages

- name: Install virtualenv
  pip: name=virtualenv
  tags: packages

- name: Install virtualenv
  pip: name=virtualenvwrapper
  tags: packages

- name: copy esri extras
  copy: src=files/esri_extra.wkt dest=/usr/share/gdal/1.10 mode=0644

Add numpy dependencies to the build.
Add numpy dependencies to the build.
