--- - name: Software for dependency installation dnf: name={{item}} state=installed become: yes with_items: - gcc - gcc-c++ - glibc-devel.x86_64 # - atlas-devel - python-devel - lapack-devel - numpy-f2py # iminuit - redhat-rpm-config when: ansible_distribution == 'Fedora' - name: "Install Python stack for scientific purposes (Distribution)" package: name={{ item }} state=latest become: yes with_items: - "{{ python2pkg }}" - "{{ python3pkg }}" - name: Update setuptools become: yes command: easy_install -U setuptools register: command_result changed_when: not command_result.stdout.find("Adding setuptools") # not working - name: upgrade pip2 #install --upgrade pip pip: state=latest name=pip become: yes - name: install pip packages Python 2 pip: name={{ item }} state=latest become: yes with_items: "{{python2pip}}" - name: upgrade pip3 pip: executable=pip3 state=latest name=pip become: yes - name: install pip packages Python 2 pip: executable=pip3 name={{ item }} state=latest become: yes with_items: "{{python3pip}}"