From 85bb508f2602a04500bdc000018d721941ca1be0 Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Wed, 16 Sep 2015 08:56:21 +0530 Subject: [PATCH] Set PlayContext.timeout from the value specified by -T on the command-line Fixes #12372 --- lib/ansible/playbook/play_context.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/playbook/play_context.py b/lib/ansible/playbook/play_context.py index ce59b473d32..5b1f6c9ade7 100644 --- a/lib/ansible/playbook/play_context.py +++ b/lib/ansible/playbook/play_context.py @@ -241,6 +241,8 @@ class PlayContext(Base): self.start_at_task = to_unicode(options.start_at_task) if hasattr(options, 'diff') and options.diff: self.diff = boolean(options.diff) + if hasattr(options, 'timeout') and options.timeout: + self.timeout = int(options.timeout) # get the tag info from options, converting a comma-separated list # of values into a proper list if need be. We check to see if the