Hi Dmitry,
Thanks for your response.
I think I should clarify, that I am capturing the result and the do .. until logic works fine and does exit the `retries' based on the the until pattern of the result. However, what I am trying to achieve
1) Either to replace "FAILED RETRYING" with the actual STDOUT of "X2".
OR
2) To display STDOUT(of X2) along with "FAILED RETRYING" for each retry.
Here is the code for the retry:
- name: Status
command: <x2>
register: result
until: result.stdout.find("complete") != -1
retries: 100
delay: 30
Here is the output on AWX screen, which I want to update to include my stdout.
FAILED - RETRYING: Status check (100 retries left).
FAILED - RETRYING: Status check (99 retries left).
FAILED - RETRYING: Status check (98 retries left).
Note: I did try the debug with retries but it breaks the retry loop.
thanks
Rd