Avoid creating temporary directory for some action plugins

This ensures we don't litter remote systems with temporary directories
that don't get cleaned up, as well as speeds things up from not having
to touch every node.
This commit is contained in:
Daniel Hokka Zakrisson
2012-11-28 16:22:35 +01:00
parent f6e7381a71
commit bda08c8a1b
6 changed files with 22 additions and 22 deletions

View File

@@ -29,6 +29,7 @@ class ActionModule(object):
### We need to be able to modify the inventory
BYPASS_HOST_LOOP = True
NEEDS_TMPPATH = False
def __init__(self, runner):
self.runner = runner

View File

@@ -23,6 +23,8 @@ from ansible.runner.return_data import ReturnData
class ActionModule(object):
''' Print statements during execution '''
NEEDS_TMPPATH = False
def __init__(self, runner):
self.runner = runner

View File

@@ -23,6 +23,8 @@ from ansible.runner.return_data import ReturnData
class ActionModule(object):
''' Fail with custom message '''
NEEDS_TMPPATH = False
def __init__(self, runner):
self.runner = runner

View File

@@ -27,6 +27,7 @@ class ActionModule(object):
### We need to be able to modify the inventory
BYPASS_HOST_LOOP = True
NEEDS_TMPPATH = False
def __init__(self, runner):
self.runner = runner

View File

@@ -28,6 +28,7 @@ from ansible import module_common
from ansible.runner.return_data import ReturnData
class ActionModule(object):
NEEDS_TMPPATH = False
def __init__(self, runner):
self.runner = runner