1 - name: Install Python and packages (Debian)
8 name: ['python', 'python2.7', 'python3', 'python-pip', 'python3-pip',
9 'python-setuptools', 'python3-setuptools',
10 'python-gdbm', 'python-openssl', 'python3-openssl',
15 when: ansible_facts.os_family == 'Debian'
17 - name: Install Python and packages (RedHat)
20 name: ['python2', 'python3', 'python2-pip', 'python3-pip',
21 'python2-setuptools', 'python3-setuptools',
22 'python2-pyOpenSSL', 'python3-pyOpenSSL',
27 when: ansible_facts.os_family == 'RedHat'
29 - name: Upgrade Python packages
31 shell: 'umask 022; {{ item }} -m pip install --upgrade
32 "pip < 19.1" setuptools tox virtualenv virtualenvwrapper "wheel < 0.31.1"
35 loop: ['python3', 'python2']