Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/install.deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@

- name: Install python-distutils
apt: name=python{{item}}-distutils state=present
when: item >= 3
when: item >= 3 and ansible_distribution_major_version >= '18'
with_items: "{{ python_versions }}"
11 changes: 9 additions & 2 deletions tasks/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,21 @@
become: yes

- name: Update tools
pip: name="setuptools virtualenv" state=latest executable=pip{{item.item}}
pip:
name:
- setuptools
- virtualenv
state: latest
executable: "pip{{item.item}}"
environment:
PATH: "/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin"
when: item.changed
with_items: "{{ python_pip_installed.results }}"

- name: Install global python packages
pip: name="{{python_install|join(' ')}}" executable={{python_pkg_bin}}/pip{{item}}
pip:
name: "{{ python_install }}"
executable: "{{python_pkg_bin}}/pip{{item}}"
when: python_install
with_items: "{{ python_versions }}"

Expand Down