On 28.02.2017 14:38, norricorp wrote:
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.
Instead of pause you could use until: so it retries until you get 200.
https://docs.ansible.com/ansible/playbooks_loops.html#do-until-loops
--
Kai Stian Olstad
--
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/0ab401c068d2008407277dc3c99a0110%40olstad.com.
For more options, visit https://groups.google.com/d/optout.