The wait_for module can test for a given port.
- name: Check if port 9090 is listening (times out in 3 secs per host)
wait_for:
port: 9090
timeout: 3
msg: "Timeout waiting for 9090 to respond"
register: port_check
ignore_errors: yes
Then you can look in port_check to see whether it succeeded.
Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6AF265D0-54E2-4048-96EF-39D71A328CC9%40nist.gov.