---
- name: Clean up the environment
  file:
    dest: "{{ azure_venv }}"
    state: absent
  when: clean_environment

- name: Install requirements
  pip:
    name:
      - packaging
      - requests[security]
      - azure-cli-core==2.0.35
      - azure-cli-nspkg==3.0.2
      - azure-common==1.1.11
      - azure-mgmt-batch==4.1.0
      - azure-mgmt-compute==2.1.0
      - azure-mgmt-containerinstance==0.4.0
      - azure-mgmt-containerregistry==2.0.0
      - azure-mgmt-containerservice==3.0.1
      - azure-mgmt-dns==1.2.0
      - azure-mgmt-keyvault==0.40.0
      - azure-mgmt-marketplaceordering==0.1.0
      - azure-mgmt-monitor==0.5.2
      - azure-mgmt-network==1.7.1
      - azure-mgmt-nspkg==2.0.0
      - azure-mgmt-rdbms==1.2.0
      - azure-mgmt-resource==1.2.2
      - azure-mgmt-sql==0.7.1
      - azure-mgmt-storage==1.5.0
      - azure-mgmt-trafficmanager==0.50.0
      - azure-mgmt-web==0.32.0
      - azure-nspkg==2.0.0
      - azure-storage==0.35.1
      - msrest==0.4.29
      - msrestazure==0.4.31
      - azure-keyvault==1.0.0a1
      - azure-graphrbac==0.40.0
    state: latest
    virtualenv: "{{ azure_venv }}"
    virtualenv_python: python2.7
