Commit f8905013 by Brian Coca

now executes fact search when needed

parent 8b896c97
...@@ -22,7 +22,7 @@ from ansible.plugins.action import ActionBase ...@@ -22,7 +22,7 @@ from ansible.plugins.action import ActionBase
class ActionModule(ActionBase): class ActionModule(ActionBase):
TRANSFERS_FILES = True TRANSFERS_FILES = False
def run(self, tmp=None, task_vars=dict()): def run(self, tmp=None, task_vars=dict()):
''' handler for package operations ''' ''' handler for package operations '''
...@@ -38,10 +38,7 @@ class ActionModule(ActionBase): ...@@ -38,10 +38,7 @@ class ActionModule(ActionBase):
pass # could not get it from template! pass # could not get it from template!
if module == 'auto': if module == 'auto':
#FIXME: autodetect the package manager run facts module remotely to get ansible_pkg_mgr module = self._execute_module(module_name=setup, module_args={filter: 'ansible_pkg_mgr'}, task_vars=task_vars)
#module = self._execute_module(module_name=setup, module_args={filter: 'ansible_pkg_mgr'}, task_vars=task_vars)
pass
if module != 'auto': if module != 'auto':
# run the 'package' module # run the 'package' module
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment