- name: Install virtenv
  command: "pyvenv-3.5 env"
  args:
      chdir: "{{orchard_swf_accounting_document_root}}"
  tags:
    - orchard-swf-accounting-init
  
- name: Upgrade PIP
  pip: 
    name: ""
    virtualenv: "{{orchard_swf_accounting_document_root}}/env"
    virtualenv_python: python3.5
    extra_args: --upgrade pip
    tags:
        - orchard-swf-accounting-init

- name: Install Global requirements
  pip: 
    name: "pymysql"
    virtualenv: "{{orchard_swf_accounting_document_root}}/env"
    virtualenv_python: python3.5
    tags:
        - orchard-swf-accounting-init

- name: Install requirements
  pip: 
    requirements: "{{orchard_swf_accounting_document_root}}/requirements.txt"
    virtualenv: "{{orchard_swf_accounting_document_root}}/env"
    virtualenv_python: python3.5
    tags:
        - orchard-swf-accounting-init

- name: Install Dev requirements
  pip: 
    requirements: "{{orchard_swf_accounting_document_root}}/requirements-dev.txt"
    virtualenv: "{{orchard_swf_accounting_document_root}}/env"
    virtualenv_python: python3.5
    tags:
        - orchard-swf-accounting-init
