[Ansible] Can't find Ansible with self-hosted agent running Ubuntu 22.04 image #7823
Closed
Kor-Hal
started this conversation in
Installed software
Replies: 1 comment 6 replies
-
After further investigation, it seems that the path value isn't the same between hosted agents and self hosted ones. Hosted : Self-hosted : Ansible living in /opt/pipx_bin Could be some missing step in building the image but I can't find where :( |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have an issue regarding Ansible and the Ubuntu 22.04 Runner image.
When using the Ansible@0 task in Azure Devops on a self-hosted agent using the latest Ubuntu 22.04 image, I get the following error :
##[error]Could not locate Ansible. Either it is not installed or its path is not present on ENVIRONMENT PATH variable
To make sure it wasn't dependent on my setup, I asked another person on a Discord to test with their setup and they got the same error.
I also tested with the official Azure Pipelines and it works there (using ubuntu-latest vmImage).
Does anybody have any clue about why this happens and how to solve it ?
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions