Try to use:

- name: Loop until status returns successful
  include: tasks/check_xxx_status.yml
  until: driver_status == 'RUNNING'
  retries: 10
  delay: 10
  register: driver_reg


- debug: var=driver_reg


- name: Next task
  …
  when: driver_reg.changed


On Wednesday, March 9, 2016 at 3:41:38 AM UTC+5, H Kim wrote:
>
> Is it possible to use a fact that was set in a include task file in the 
> until condition of the loop?
> When I try to run the following- the driver_status is never set until 
> after this entire task has completed.
>
> - name: Loop until status returns successful
>   include: tasks/check_xxx_status.yml
>   until: driver_status == 'RUNNING' 
>   retries: 10
>   delay: 10
>
>
>
> Any help appreciated. Thanks!
>

-- 
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/a8b74aa7-ce76-4cd2-9d59-a70c516c1999%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to