title: Ansible Playbook should stop execution if port is open
body: <p>I am installing karaf on VM and in my installation process i want to verify if karaf instance is already running and it stop installation process and exit from ansible execution if port is open. currently its doing other way</p>
  
  <pre><code>- name: Wait for my-service to start
        wait_for: port={{karaf_port}} timeout=30
         msg: "Port 8101 is not accessible."
  </code></pre>