]> git.phdru.name Git - ansible.git/blob - playbooks/redhat/roles/python-packages/tasks/main.yml
Feat(firewall): Use handler instead of condition
[ansible.git] / playbooks / redhat / roles / python-packages / tasks / main.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            'python2-pyOpenSSL', 'python3-pyOpenSSL',
7           ]
8     state: latest
9     update_cache: yes
10   register: python
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   when: python.changed
18   loop: ['python3', 'python2']