forked from ISTI-ansible-roles/ansible-roles
22 lines
697 B
YAML
22 lines
697 B
YAML
|
---
|
||
|
- name: Install python pip
|
||
|
apt: name={{ item }} state={{ py_env_pkgs_state }}
|
||
|
with_items: py_env_basic_pkgs
|
||
|
tags: [ "python", "py_env" ]
|
||
|
|
||
|
- name: Install python deb packages
|
||
|
apt: name={{ item }} state={{ py_env_pkgs_state }}
|
||
|
with_items: '{{ py_env_dpkg | default([]) }}'
|
||
|
tags: [ "python", "py_env" ]
|
||
|
|
||
|
- name: Install deb packages needed to compile the pip modules
|
||
|
apt: name={{ item }} state={{ py_env_pkgs_state }}
|
||
|
with_items: '{{ py_pip_deps | default([]) }}'
|
||
|
tags: [ "python", "py_env" ]
|
||
|
|
||
|
- name: Install a list of pip packages
|
||
|
pip: name={{ item }} virtualenv={{ py_env_env_base_dir }}
|
||
|
with_items: '{{ py_env_pip_pkgs | default ()[] }}'
|
||
|
tags: [ "python", "py_env" ]
|
||
|
|