diff --git a/src/ansibletower/launchAndWait.py b/src/ansibletower/launchAndWait.py index f9c1469..17551a2 100644 --- a/src/ansibletower/launchAndWait.py +++ b/src/ansibletower/launchAndWait.py @@ -74,4 +74,5 @@ def formatted_print(message): formatted_print(">>> %s launched with job id %s" % (message_text.capitalize(), str(job_id))) +task.setStatusLine("Job id %s launched" % job_id) task.schedule("ansibletower/launchAndWait.wait_for_completion.py", int(wait_interval)) diff --git a/src/ansibletower/launchAndWait.wait_for_completion.py b/src/ansibletower/launchAndWait.wait_for_completion.py index d4a84e0..c2c8401 100644 --- a/src/ansibletower/launchAndWait.wait_for_completion.py +++ b/src/ansibletower/launchAndWait.wait_for_completion.py @@ -50,6 +50,7 @@ def formatted_print(message): result = json.loads(response.response) status=result['status'] print status + task.setStatusLine("Job id %s %s" % (job_id, status)) if status in ["running","pending","waiting"]: num_tries += 1 if max_retries: