Well, when it fails after 300 seconds, it seems its unable to interpret 
group['manager] to node-41 ..etc, still not sure why! 



failed: [172.18.18.44 -> localhost] (item=groups['manager']) => {"changed": 
false, "elapsed": 5, "failed": true, "item": "*groups['manager']*", "msg": 
"Timeout when waiting for search string Docker is up and running in /tmp/
*groups['manager'].*log"}



On Wednesday, November 15, 2017 at 10:54:27 AM UTC-5, Dean Kamali wrote:
>
> Hey everyone 
>
> I'm trying this combination, can't figure out what I'm doing wrong, 
>
> When I try the following it works
>
> - name: Wait for service
> wait_for:
> path: /tmp/node-41.log
> search_regex: 'Docker is up and running'
> delegate_to: localhost 
>
>
> However when I try and loop over hosts group, it hangs forever. 
>
> - name: Wait for service
> wait_for:
> path: /tmp/node-41.log
> search_regex: 'Docker is up and running'
> delegate_to: localhost 
> with_items: hosts.manager
>
> Any ideas on why? 
>

-- 
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/1db81d5b-b095-4e2d-885d-f70d7fa528cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to