- name: Install Python 3 pip package: name: python3-pip become: yes - name: Install Python 2 pip package: name: python2-pip become: yes when: - ensure_pip_from_packages_with_python2