1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

now executes fact search when needed

This commit is contained in:
Brian Coca 2015-07-19 18:00:27 -04:00
parent 8b896c9754
commit f8905013cd

View file

@ -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