From d2abfb9ff820ac0eb0331aa1c10523a68efd2490 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Sun, 18 Nov 2012 18:36:37 +0100 Subject: [PATCH] Ensure runner adds its basedir, so ansible can benefit from plugins --- 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 3a151a868c..257ad3346c 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -151,6 +151,8 @@ class Runner(object): if self.transport == 'local': self.remote_user = pwd.getpwuid(os.geteuid())[0] + utils.plugins.push_basedir(self.basedir) + # ensure we are using unique tmp paths random.seed()