-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system/service module initctl location usage #19712
Conversation
I confirm that the issue is also affecting |
In the meantime, I've been manually setting the environment for the task/play and referencing the initctl path like so:
|
@bcoca just hit this bug today in 2.3.3.0. |
* Call initctl version based on initctl's retrieved location * Remove the use of start/stop/restart in favor of initctl * Provide correct argument order for initctl usage
ISSUE TYPE
COMPONENT NAME
lib/ansible/modules/system/service
ANSIBLE VERSION
SUMMARY
Fall back on using initctl command to manage services in preference of start/stop/restart binaries.
Main reason is to use a resolved binary location as service command. Start's location eg is resolved to see if it exists, but the full location is not used to launch the command, as at that point in code not the service command is beeing used but the bare action.
Before:
After: