You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Image Update] Remove ansible installed using pip #402
If you install the ansible using tdnf the ansible-galaxy fails to run with an error: ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3.
The current version of ansible-galaxy (on mariner) needs resolvelib of certain version (anything between 0.5.3 and 0.9.0). The ansible (and ansible-galaxy) shipped with mariner repo is older ansible-2.14.12-1.cm2.noarch.rpm 14-Jan-2024 22:05, hence needs older resolvelib.
Activity
surajssd commentedon Apr 24, 2024
Blocker on using ansible from the mariner repo
If you install the
ansibleusingtdnftheansible-galaxyfails to run with an error:ERROR! ansible-galaxy requires resolvelib<0.9.0,>=0.5.3.The current version of
ansible-galaxy(on mariner) needsresolvelibof certain version (anything between0.5.3and0.9.0). Theansible(andansible-galaxy) shipped with mariner repo is olderansible-2.14.12-1.cm2.noarch.rpm 14-Jan-2024 22:05, hence needs olderresolvelib.But the
resolveliblibrary itself that mariner ships is newer. The current version ofresolvelibispython3-resolvelib-1.0.1-1.cm2.noarch.rpm 03-Aug-2023 02:37, can be found here: https://packages.microsoft.com/cbl-mariner/2.0/prod/base/x86_64/Packages/p/Reproducing problem
Build the docker image:
docker build -t ansible -f linux/ansible.Dockerfile .surajssd commentedon Apr 24, 2024
We can skip installing
ansiblealtogether using the package managertdnfand let user install it usingpip.Build docker image
docker build -t ansible -f linux/ansible.Dockerfile .Start the container
Install
ansibleusingpip3inside the container and then run theansible-galaxycommand:Sample run:
surajssd commentedon Apr 24, 2024
I wonder if this installation works without sudo!
surajssd commentedon Apr 24, 2024
Yes, it does.