Upgraded to ansible 2.0.0.2 from 1.9.4 and noticed that after creating a 
new ec2 instance the wait_for module failed when using local_action:

Here's my play and the output:

    - name: Wait for SSH to come up

      *local_action:* 

        module: wait_for

          host={{ item.public_dns_name }} 

          port={{ wait_for_port }} 

          delay=60 

          state=started

          search_regex=OpenSSH

      with_items: ec2.instances

fatal: [127.0.0.1]: FAILED! => {"failed": true, "msg": "ERROR! The module 
wait_for host=HIDDEN_IP_ADDRESS.compute-1.amazonaws.com port=22 delay=60 
state=started search_regex=OpenSSH was not found in configured module 
paths. Additionally, core modules are missing. If this is a checkout, run 
'git submodule update --init --recursive' to correct this problem."}

However using the delegate_to keyword works: Credit to these guys 
<http://qiita.com/hidekuro/items/133e0d5c8cf3c3029973>

    - name: Wait for SSH to come up
      *wait_for: >*
          host={{ item.public_dns_name }}
          port={{ wait_for_port }}
          delay=60
          state=started
          search_regex=OpenSSH
      with_items: ec2.instances
      *delegate_to: localhost*

Anyone else have this issue?

-- 
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/05959ba8-03b8-44b4-b348-35c5a28c6196%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to