From 6609f3ac03e2e5b4c45e7cc73bc22fb9b142da57 Mon Sep 17 00:00:00 2001 From: Andreas Reischuck Date: Fri, 30 Jan 2015 21:04:52 +0100 Subject: [PATCH] fix suggested by @aikomastboom --- lib/ansible/runner/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index ae8016499cf..4a4680cb374 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -934,6 +934,8 @@ class Runner(object): actual_private_key_file = delegate['private_key_file'] self.sudo_pass = delegate['sudo_pass'] inject = delegate['inject'] + # set resolved delegate_to into inject so modules can call _remote_checksum + inject['delegate_to'] = self.delegate_to # user/pass may still contain variables at this stage actual_user = template.template(self.basedir, actual_user, inject)