On Thu, 21 May 2020 17:59:15 -0700 (PDT)
Jenisha T <[email protected]> wrote:

> Is there a way in Ansible to find if process complete. I m running an 
> os-copy process. How to check if the process completed. The hard way is to 
> wait  for 2hrs and read logs to find the word in the log is there a 
> sentence "OS copy success".

There is only hard way "Asynchronous Actions and Polling"
https://docs.ansible.com/ansible/latest/user_guide/playbooks_async.html

> Is there any elegant way to do it in ansible check if 
> the process completes go to the next task instead of waiting for 2 hrs and 
> then checking logs. 

AFAIK, there is no distributed interprocess communication. Probably because
of the large variety of supported platforms. Instead, the process might
trigger ansible-pull when ready
https://docs.ansible.com/ansible/latest/cli/ansible-pull.html

HTH,

        -vlado

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200522073936.2d749d9d%40gmail.com.

Attachment: pgpOP2FEt0Mrq.pgp
Description: OpenPGP digital signature

Reply via email to