]> git.phdru.name Git - ansible.git/blob - playbooks/debian/roles/init-system/tasks/python.yml
Feat(init-system): Upgrade Python packages
[ansible.git] / playbooks / debian / roles / init-system / tasks / python.yml
1 - name: Install Python and packages
2   become: true
3   apt:
4     autoclean: yes
5     autoremove: yes
6     install_recommends: no
7     name: ['python', 'python2.7', 'python3', 'python-pip', 'python3-pip',]
8     purge: yes
9     state: latest
10     update_cache: yes
11
12 - name: Upgrade Python packages
13   become: true
14   shell: 'umask 022; {{ item }} -m pip install --upgrade
15       "pip < 19.1" setuptools tox virtualenv virtualenvwrapper "wheel < 0.31.1"
16       flake8 sphinx twine'
17   loop: ['python3', 'python2']