Hi,

can anyone guide me why i am getting this failure message even when both 
the ports are UP and running. 


PLAYBOOK:
==========

---

- hosts: windows_target_Machines

  gather_facts: false

 

 

  tasks:

 

  - name: Check if a port is running

    wait_for:

      port: "{{ item }}"

      state: started

      delay: 3

      timeout: 6

    ignore_errors: yes

    with_items:

      - 443

      - 80

    delegate_to: localhost




OUTPUT:

========

TASK [Check if a port is running] ******************************
****************

*failed: [hostname.corp.com <http://hostname.corp.com/> -> localhost] 
(item=443) => {"changed": false, "elapsed": 6, "item": 443, "msg": "Timeout 
when waiting for #######:443 <http://127.0.0.1:443/>"}*

*failed: [hostname.corp.com <http://hostname.corp.com/> -> localhost] 
(item=80) => {"changed": false, "elapsed": 6, "item": 80, "msg": "Timeout 
when waiting for #########:80 <http://127.0.0.1/>"}*


-- 
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/cfd6853e-b1c1-4c3f-a572-f04ef8fcccd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to