]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/python-packages/tasks/main.yml
Feat(python-packages): `pip install --compile`
[ansible.git] / playbooks / roles / python-packages / tasks / main.yml
index 0abb3a1ea6a6a1d068207ca5172fc90e50b52302..3db890c9a4c911dc5bb3eee83ff3600a2e5afccc 100644 (file)
@@ -1,4 +1,4 @@
-- name: Install Python and packages
+- name: Install Python and packages (Debian)
   become: true
   apt:
     autoclean: yes
@@ -14,7 +14,7 @@
   register: python
   when: ansible_facts.os_family == 'Debian'
 
-- name: Install Python and packages
+- name: Install Python and packages (RedHat)
   become: true
   dnf:
     name: ['python2', 'python3', 'python2-pip', 'python3-pip',
@@ -28,7 +28,7 @@
 
 - name: Upgrade Python packages
   become: true
-  shell: 'umask 022; {{ item }} -m pip install --upgrade
+  shell: 'umask 022; exec {{ item }} -m pip install --compile --upgrade
       "pip < 19.1" setuptools tox virtualenv virtualenvwrapper "wheel < 0.31.1"
       flake8 sphinx twine'
   when: python.changed