'fetchmail', 'gnupg', 'gnupg2', 'links2',
'logcheck', 'lzip', 'lzma', 'lzop', 'mc', 'mutt',
'p7zip', 'procmail',
- 'python', 'python2.7', 'python3', 'python-pip', 'python3-pip',
'rsync', 'unzip', 'vim', 'wget', 'xz-utils', 'zip',
]
purge: yes
--- /dev/null
+- name: Install Python and packages
+ become: true
+ apt:
+ autoclean: yes
+ autoremove: yes
+ install_recommends: no
+ name: ['python', 'python2.7', 'python3', 'python-pip', 'python3-pip',]
+ purge: yes
+ state: latest
+ update_cache: yes
+
+- name: Upgrade Python packages
+ become: true
+ shell: 'umask 022; {{ item }} -m pip install --upgrade
+ "pip < 19.1" setuptools tox virtualenv virtualenvwrapper "wheel < 0.31.1"
+ flake8 sphinx twine'
+ loop: ['python3', 'python2']