-
Notifications
You must be signed in to change notification settings - Fork 138
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
AnsibleAdhocCmd return error when args has spaces #90
Comments
hi! @ylxxwx btw, does it also fails if you execute the command that is show on the error message? |
It runs ok when execute in shell.
…On Sun, Feb 13, 2022 at 2:45 PM apenella ***@***.***> wrote:
hi! @ylxxwx <https://github.com/ylxxwx>
Thanks for rising that issue.
Let me check it.
btw, does it also fails if you execute the command that is show on the
error message?
—
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDMW6VUZVJ5MD6ZEUH4P3DU3AC5XANCNFSM5OEHSV7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
hi @ylxxwx I made it run on my system:
It also worked out on a remote server, using ssh connection:
As I could see on #91 , I did not change anything that should solves it, I just quoted the Let me know, if it helps you. |
It works. thaniks. |
@ylxxwx just to let you know, I decided to prepare the release v1.1.6 which will have that changes. |
When I use AnsibleAdhocCmd w/ Args('ping x.x.x.x -c 10'), I see this error. This command works in shell. The root cause is there are spaces in teh args. Any solution?
*errors.Error(&errors.Error{context:"(DefaultExecute::Execute)", message:"Error during command execution: ansible-playbook error: one or more host failed\n\nCommand executed: /usr/bin/ansible all --args 'ping x.x.x.x -c 10' --inventory x.x.x.x, --module-name command --private-key ~/.ssh/gpc_rack_id_rsa\n\nexit status 2", wrappedErrors:[]error(nil)})
The text was updated successfully, but these errors were encountered: