Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipx: Add support for --global parameter #8705

Closed
1 task done
gaby opened this issue Aug 2, 2024 · 9 comments · Fixed by #8793
Closed
1 task done

pipx: Add support for --global parameter #8705

gaby opened this issue Aug 2, 2024 · 9 comments · Fixed by #8793
Labels
feature This issue/PR relates to a feature request has_pr module module plugins plugin (any type)

Comments

@gaby
Copy link

gaby commented Aug 2, 2024

Summary

Since pipx v1.6.0 the --global argument was added which helps to execute actions in global scope which exposes the app to all system users. By default the global binary location is set to /usr/local/bin. This is great for systems that have multiple users that will use the same CLI applications. For example ansible itself.

Note:

Issue Type

Feature Idea

Component Name

pipx

Additional Information

Example

- name: Install ansible as a global package to all users
  community.general.pipx:
    name: ansible
    global: true

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

cc @russoz
click here for bot help

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request module module plugins plugin (any type) labels Aug 2, 2024
@gaby
Copy link
Author

gaby commented Aug 2, 2024

The --include-deps is also needed, else the CLI of dependencies are installed. In the case of ansible pkg, the cli's provided by ansible-core dont get installed unless that param is also provided.

@russoz
Copy link
Collaborator

russoz commented Aug 2, 2024

Hi @gaby that is already there.

https://docs.ansible.com/ansible/latest/collections/community/general/pipx_module.html#parameter-install_deps

@gaby
Copy link
Author

gaby commented Aug 2, 2024

@russoz Great, so the only thing missing would be the global param. Thanks, I should had check the docs

@gaby
Copy link
Author

gaby commented Aug 22, 2024

@russoz Hello, has there been any updates on this? It's a blocker for deploying hosts with Ubuntu 24.04 and Ansible.

@russoz
Copy link
Collaborator

russoz commented Aug 24, 2024

hi @gaby , I have not had much time lately. Just started the PR today, but I am going to add other pipx params that are missing. For --global I still need to write tests.

@gaby
Copy link
Author

gaby commented Aug 24, 2024

@russoz Thanks for the update! Really appreciate it.

@gaby
Copy link
Author

gaby commented Aug 26, 2024

@russoz Thank you for implementing this! 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request has_pr module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants