On Thursday, 25 October 2018 04:28:16 CEST rd wrote:
> 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).

Ansible output is controlled by callback plugin you have many you can try
https://docs.ansible.com/ansible/2.7/plugins/callback.html#plugin-list

If non of them is to you liking you would need to create your own.

-- 
Kai Stian Olstad


-- 
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/2992468.YvOtBPCdU8%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to