From f8905013cda08e6acdac4881a8cb46e94daba34d Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sun, 19 Jul 2015 18:00:27 -0400 Subject: [PATCH] now executes fact search when needed --- lib/ansible/plugins/action/package.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/ansible/plugins/action/package.py b/lib/ansible/plugins/action/package.py index 6dfabf39492..fa412d45db3 100644 --- a/lib/ansible/plugins/action/package.py +++ b/lib/ansible/plugins/action/package.py @@ -22,7 +22,7 @@ from ansible.plugins.action import ActionBase class ActionModule(ActionBase): - TRANSFERS_FILES = True + TRANSFERS_FILES = False def run(self, tmp=None, task_vars=dict()): ''' handler for package operations ''' @@ -38,10 +38,7 @@ class ActionModule(ActionBase): pass # could not get it from template! 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) - pass - + module = self._execute_module(module_name=setup, module_args={filter: 'ansible_pkg_mgr'}, task_vars=task_vars) if module != 'auto': # run the 'package' module