Hi Pawan
You state: "Curl command is working fine on command line shell".
But in fact, it is not working fine, because it exits with error code
3, which (according to
https://curl.haxx.se/libcurl/c/libcurl-errors.html) means "The URL was
not properly formatted."
You would have seen that if you didn't suppress the output with the
"-s" (silent) switch.
Running the same command from ansible shell will give exactly the same
result, but ansible is more vocal about non-zero exit codes and hence
will complain.
Remove the "-s" switch and try to manually tweak the curl command so
that it yields something useful (preferably something that cleanly
exits).
Once that works, it will also work in ansible shell/command.
Dick
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
ansible-proje...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d2ba46f1-ca60-49fa-b0ee-f889a6639de4%40googlegroups.com.
--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT