For do until:

https://docs.ansible.com/ansible/playbooks_loops.html#do-until-loops

The output of the stat module is documented in the documentation page of 
the module. But you can look at what is available in general by registering 
the output of a task and then putting debug: var=variablename as the next 
task.

I haven't put any error handling in my example playbook so you would 
probably have to add another task in case the loop times out. The values I 
chose were OK for testing but you will need to find proper timings for your 
use case.
additionally you can read up on lookups 
here: https://docs.ansible.com/ansible/playbooks_lookups.html

I chose to not use to look into the stdout of another task because you 
specifically asked to look if anything still appends to a file. If you have 
a log entry that tells you when your processes are finished I would 
recommend using that as an inidcator instead og the mtime.

-- 
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/1d7d7c46-f371-4816-993d-f740894f9016%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to