ansible-role-ansible icon indicating copy to clipboard operation
ansible-role-ansible copied to clipboard

docs: Pip Executable var needs to be set

Open JakobLichterfeld opened this issue 1 year ago • 3 comments

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 avatar Sep 04 '23 14:09 JakobLichterfeld

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[bot] avatar Jan 08 '24 19:01 github-actions[bot]

.

JakobLichterfeld avatar Jan 09 '24 09:01 JakobLichterfeld

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

oxer-0 avatar Feb 08 '24 16:02 oxer-0

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[bot] avatar Jun 10 '24 19:06 github-actions[bot]

No response from the maintainer to the issue or the PR #27 . Changed the part without referring to the issue, only afterwards first reaction with lack of understanding for the problem, which is no longer obvious due to the change.

JakobLichterfeld avatar Jun 12 '24 08:06 JakobLichterfeld