ansible-role-ansible
ansible-role-ansible copied to clipboard
docs: Pip Executable var needs to be set
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
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.
.
I can confirm the problem, Had to upgrade ansible
on a Debian 11, and faced this issue, The solution of course worked.
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.
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.