--- - name: install fitting for Python 3 dnf: state=latest name={{ item }} become: yes with_items: - python3-scipy - python3-scikit-learn tags: fit when: ansible_distribution == 'Fedora' - name: install fitting via pip3 pip: executable=pip3 state=latest name={{ item }} become: yes with_items: - iminuit # - kafe - lmfit tags: fit