title: run adhoc wait_for with delegate_to
body: <p>my Makefile has the following steps</p>
  
  <pre><code>   create:
         do create stuff
         # extra ansible adhoc command to wait for ssh
  
     setup:
         do other stuff
  </code></pre>
  
  <p>I'd like to add a step after <code>do create stuff</code> that waits until all hosts have their ssh port accesible, but i dont want to have to commit an extra playbook that just does this:</p>
  
  <pre><code>  - hosts: all
      tasks:
        - name: wait for ssh port
          wait_for:
            host: '{{ ansible_ssh_host }}'
            port: 22
            timeout: 300
          delegate_to: localhost
  </code></pre>
  
  <p>I've tried using an adhoc command that will run the command above but with local action</p>
  
  <pre><code>ansible all -i inventory -m local_action -a 'wait_for port=22 timeout=300'
  </code></pre>
  
  <p>but thats not correct cause </p>
  
  <pre><code>ERROR! this task 'local_action' has extra params, which is only allowed in the following modules: command, win_command, shell, win_shell, script, include, include_vars, add_host, group_by, set_fact, raw, meta
  </code></pre>