---
  - name: Install Python 2.7 and Pip 2.7
    sudo: yes
    apt:  pkg={{ item }} state=latest
    with_items:
    - python
    - python-pip

  - name: Install virtualenv
    sudo: yes
    shell: bash -c "pip install virtualenv"

  - name: Install virtualenvwrapper
    sudo: yes
    shell: bash -c "pip install virtualenvwrapper"



---
  - name: Install Python 2.7 and Pip 2.7
    sudo: yes
    apt:  pkg={{ item }} state=latest
    with_items:
    - python
    - python-pip

  - name: Install virtualenv
    sudo: yes
    pip:
      name: virtualenv

  - name: Install virtualenvwrapper
    sudo: yes
    pip:
      name: virtualenvwrapper

Use pip for dependency management.
Use pip for dependency management.
