On Wed, 11 Feb 2015 03:41 -0800, [email protected] wrote: > This works: > > - name: Pausing to wait for application to start (fixed interval) > pause: seconds=10 > tags: > - check > > - name: Run curl > command: curl localhost:8000 > register: run_curl > tags: > - check > > - name: Check curl output > fail: msg='curl output was not as expected' > # 'Not found' is the expected content > > when: "run_curl.stdout.find('Not Found') == -1" > tags: > - check
The wait_for module accepts a 'delay' parameter, so you don't need the pause task. http://docs.ansible.com/wait_for_module.html Giovanni -- 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/1423823509.4023481.227047925.1A7B7069%40webmail.messagingengine.com. For more options, visit https://groups.google.com/d/optout.
