Only wait for ansible-runner pid in run_async
Ansible-runner only creates a pid file when running as a daemon in the background. We should only wait for this file to be created when we are running async otherwise it is enough to wait for the ansible-runner command to return.
Follow-up to https://github.com/ManageIQ/manageiq/pull/22046
Backported to najdorf in commit ccd74be6fe2584cda61423e4ccbd37d86fd75ed0.
commit ccd74be6fe2584cda61423e4ccbd37d86fd75ed0
Author: Jason Frey <[email protected]>
Date: Wed Aug 10 09:50:34 2022 -0400
Merge pull request #22047 from agrare/only_run_wait_for_run_async
Only wait for ansible-runner pid in run_async
(cherry picked from commit b8741cc73b7d0e5849061f7cb3a3bc4a61261950)
Backported to morphy in commit 1ade723c9633f56fd5a516a17b26e6be83bfd601.
commit 1ade723c9633f56fd5a516a17b26e6be83bfd601
Author: Jason Frey <[email protected]>
Date: Wed Aug 10 09:50:34 2022 -0400
Merge pull request #22047 from agrare/only_run_wait_for_run_async
Only wait for ansible-runner pid in run_async
(cherry picked from commit b8741cc73b7d0e5849061f7cb3a3bc4a61261950)