many thanks to both of you for the replies.
I tried both shell and command modules with the curl command and a
curl: (7) Failed connect to centos7-ansible:8080; Connection refused"
Not sure why the connection would be refused as there. The previous task in
ansible is to start tomcat so would it be too soon to accept requests?
Tried adding a pause and that worked with a command module but not the uri
module. But curl does take a long time to run whereas outside of anisble it
is instant.
I did increase the timeout value on uri and that did allow it to complete
OK.
This is all running on the same VM so there should not be proxy issues.
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/380dec93-d410-4070-92b7-ce7b93f3f5e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.