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

docs: Pip Executable var needs to be set #26

Open
JakobLichterfeld opened this issue Sep 4, 2023 · 3 comments
Open

docs: Pip Executable var needs to be set #26

JakobLichterfeld opened this issue Sep 4, 2023 · 3 comments

Comments

@JakobLichterfeld
Copy link

JakobLichterfeld commented Sep 4, 2023

Actual Behaviour

If using the example playbook

The Task fails:

TASK [geerlingguy.ansible : Install Ansible via Pip.] **************************************************************************
fatal: [examle_host]: FAILED! => {"changed": false, "msg": "Unable to find any of  to use.  pip needs to be installed."}

Full run:

TASK [geerlingguy.pip : Ensure Pip is installed.] ******************************************************************************
ok: [examle_host]

TASK [geerlingguy.pip : Ensure pip_install_packages are installed.] ************************************************************
skipping: [examle_host]

TASK [geerlingguy.ansible : Set the package state based on how Ansible is installed.] ******************************************
ok: [examle_host]

TASK [geerlingguy.ansible : Set up Ansible on RedHat.] *************************************************************************
skipping: [examle_host]

TASK [geerlingguy.ansible : Set up Ansible on Fedora.] *************************************************************************
skipping: [examle_host]

TASK [geerlingguy.ansible : Set up Ansible on Ubuntu.] *************************************************************************
skipping: [examle_host]

TASK [geerlingguy.ansible : Set up Ansible on Debian.] *************************************************************************
skipping: [examle_host]

TASK [geerlingguy.ansible : Set up Ansible using Pip.] *************************************************************************
included: /home/[example_user]/.ansible/roles/geerlingguy.ansible/tasks/setup-pip.yml for [example_host]

TASK [geerlingguy.ansible : Install Ansible via Pip.] **************************************************************************
fatal: [examle_host]: FAILED! => {"changed": false, "msg": "Unable to find any of  to use.  pip needs to be installed."}

Solution

The ansible_pip_executable: pip3 needs to be set as in the CI build

JakobLichterfeld added a commit to JakobLichterfeld/ansible-role-ansible that referenced this issue Sep 4, 2023
Copy link

github-actions bot commented Jan 8, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Jan 8, 2024
@JakobLichterfeld
Copy link
Author

.

@github-actions github-actions bot removed the stale label Jan 15, 2024
@oxer-0
Copy link

oxer-0 commented Feb 8, 2024

I can confirm the problem, Had to upgrade ansible on a Debian 11, and faced this issue, The solution of course worked.

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

Successfully merging a pull request may close this issue.

2 participants