mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user