$PATH and ansible-playbook #1230
Replies: 5 comments 3 replies
-
From my own trial and error you either need to have ansible installed as any other OS tool in standard paths or (what I use) install pip3/ansible/etc locally under the user account that you installed semaphore with). If you install ansible with a non root user the install process will see that you don't have write privs to the standard OS dirs and begin to install locally under ~/.local/ . You would include ~/.local/bin in your PATH for that user account. You also need to use something like this in your semaphore.service manifest to ensure the daemon starts with the right path: Save as this /etc/systemd/system/semaphore.service[Unit] [Service] [Install] |
Beta Was this translation helpful? Give feedback.
-
To expand on this, I had to do slightly more for my service file - see issue #1252 |
Beta Was this translation helpful? Give feedback.
-
@elibendavid777 Greetings Please provide some more information:
BTW: Feature-request for Debug information in the WebUI => #1353 |
Beta Was this translation helpful? Give feedback.
-
Non-docker install: I've installed ansible via pip in my semaphore user space. Adding this to the semaphore users .profile works OK: PATH=${HOME}/.local/bin:${PATH} |
Beta Was this translation helpful? Give feedback.
-
Thanks to @ansibleguy the documentation have already been improved into that direction. |
Beta Was this translation helpful? Give feedback.
-
Running playbook failed: exec: "ansible-playbook": executable file not found in $PATH
my version is: 2.8.90
what am i doing worng?
what is the default home for semaphore?
how can i get the ENV for it?
thanx
Beta Was this translation helpful? Give feedback.
All reactions