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”. 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.
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