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

How to install pip package in the same environment where ansible run #98

Open
mihalt opened this issue Apr 20, 2024 · 1 comment
Open

Comments

@mihalt
Copy link

mihalt commented Apr 20, 2024

Hi! I use hashi_vault.vault_read in one of my playbooks and I see, that Github Actions ubuntu-latest host uses "ansible_playbook_python": "/opt/pipx/venvs/ansible-core/bin/python"

And when I install pip install hvac or pipx install --include-deps hvac on Actions server looks like it installs hvac, that I need to make vault_read working.
So, how should I install it in github acitons server to have opportunity to use hashi_vault.vault_read module? What do you think?

@mihalt
Copy link
Author

mihalt commented Apr 20, 2024

Ok, it was solution
pipx inject ansible-core hvac

Are maybe any more better ways? Or planned in your lib?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant