Giter Club home page Giter Club logo

Comments (6)

josdotso avatar josdotso commented on June 29, 2024 2

Seems to me it should expose the executable var to really support python3 well:

http://docs.ansible.com/ansible/latest/pip_module.html

from ansible-role-pip.

hasufell avatar hasufell commented on June 29, 2024 2

Sorry, I don't understand why this was closed. I just used the playbook as described in the README and it fails:

fatal: [xxx]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "No package matching 'python-pip' is available"}

Setting pip_package: python3-pip results in the same error.

So either the documentation is insufficient or the README is incorrect about this not requiring any dependencies/prior steps.

Edit: seems it is related to #12

from ansible-role-pip.

dzhus avatar dzhus commented on June 29, 2024 1

@josdotso Isn't this enough:

    - role: geerlingguy.pip
      pip_package: python3-pip

?

from ansible-role-pip.

michaelpporter avatar michaelpporter commented on June 29, 2024

It does not seem to be for me

pip_package: python3-pip
pip_install_packages:
  - certbot-dns-cloudflare
failed: [web01] (item=certbot-dns-cloudflare) => {"changed": false, "item": "certbot-dns-cloudflare", "msg": "Unable to find any of pip2, pip to use.  pip needs to be installed."}
pip_package: python3-pip
which pip
[empty response]
which pip3
/usr/bin/pip3
pip_package: python-pip
which pip
/usr/bin/pip
which pip3
[empty response]

Seems it just needs a symlink if pip_package == 'python3-pip'

from ansible-role-pip.

michaelpporter avatar michaelpporter commented on June 29, 2024

The above PR might not be enough to install the pip3 packages from what I just tested.

If I find something I will update the PR.

from ansible-role-pip.

michaelpporter avatar michaelpporter commented on June 29, 2024

PR-15 has been updated. A much better fix.

from ansible-role-pip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.