I have another task (which will run long time) top of it where based on
that this *percent_complete* will be changed and that date stored in
*variable_data*.

I want to run *debug* task every 1 min to check percent_complete and if
records shows percent_complete is 100 and then exit the play.

On Tue, 20 Jun 2023, 22:21 Dick Visser, <dnmvis...@gmail.com> wrote:

> This is not possible, because percent_complete is only 20, 60, or 80.
> 100 is not there. So whatever this means, it won't finish.
>
> On Tue, 20 Jun 2023 at 18:48, Aharonu <aharon...@gmail.com> wrote:
>
>> Dear All,
>>
>> Could you please help with the below query.
>>
>> I have *variable_data *which contains 3 records. I want to keep run *debug
>> *task continuously every 1 minute until *percent_complete* == 100 and
>> then complete task execution.
>>
>> Please help to achieve my requirement. Thank you  in advance.
>>
>> TASK [debug] ***************************************************
>> ok: [cluster1] => {
>>     "variable_data.msg": {
>>         "num_records": 3,
>>         "records": [
>>             {
>>                 "percent_complete": 20,
>>                 "state": "in-progress",
>>                 "volume": "vol1",
>>                 "vserver": "svm1"
>>             },
>>             {
>>                 "percent_complete": 50,
>>                 "state": "in-progress",
>>                 "volume": "vol2",
>>                 "vserver": "svm1"
>>             },
>>             {
>>                 "percent_complete": 80,
>>                 "state": "in-progress",
>>                 "volume": "vol3",
>>                 "vserver": "svm2"
>>             }
>>         ]
>>     }
>> }
>>
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CANGEjuXPNuy2guY3VRyE0yj7tPz-TrOORp5VCvaKBgfD9qyPcQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CANGEjuXPNuy2guY3VRyE0yj7tPz-TrOORp5VCvaKBgfD9qyPcQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAF8BbLaDObkFhD4n2%2BBSxe%2BhnWtVAVtvrtBtnWrkkR69CFbpYw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAF8BbLaDObkFhD4n2%2BBSxe%2BhnWtVAVtvrtBtnWrkkR69CFbpYw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CANGEjuUoeOFenbPvzN0RKAcGU%2BwDGw%3DO5SThiKJu4NyfppUJPQ%40mail.gmail.com.

Reply via email to