add async fire-forget/check functionality
This commit is contained in:
parent
792298f114
commit
1e35fb4c4c
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ def main():
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
if data == '':
|
if data == '':
|
||||||
# file not written yet? That means it is running
|
# file not written yet? That means it is running
|
||||||
module.exit_json(results_file=log_path, ansible_job_id=jid, started=1)
|
module.exit_json(results_file=log_path, ansible_job_id=jid, started=1, finished=0)
|
||||||
else:
|
else:
|
||||||
module.fail_json(ansible_job_id=jid, results_file=log_path,
|
module.fail_json(ansible_job_id=jid, results_file=log_path,
|
||||||
msg="Could not parse job output: %s" % data)
|
msg="Could not parse job output: %s" % data)
|
||||||
|
|
Loading…
Reference in a new issue