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