From 3ee7b177e835fe578977a6d7a8a7e9093c23d16a Mon Sep 17 00:00:00 2001 From: Preston Marshall Date: Wed, 25 Sep 2013 17:28:25 -0500 Subject: [PATCH] Allow storing input from user in a pause prompt --- lib/ansible/runner/action_plugins/pause.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/action_plugins/pause.py b/lib/ansible/runner/action_plugins/pause.py index 31648ae820..8aaa87f454 100644 --- a/lib/ansible/runner/action_plugins/pause.py +++ b/lib/ansible/runner/action_plugins/pause.py @@ -101,7 +101,7 @@ class ActionModule(object): # Clear out any unflushed buffered input which would # otherwise be consumed by raw_input() prematurely. tcflush(sys.stdin, TCIFLUSH) - raw_input(self.prompt) + self.result['user_input'] = raw_input(self.prompt) except KeyboardInterrupt: while True: print '\nAction? (a)bort/(c)ontinue: '