|
|
@ -40,9 +40,9 @@ class ActionModule(ActionBase):
|
|
|
|
if module == 'auto':
|
|
|
|
if module == 'auto':
|
|
|
|
facts = self._execute_module(module_name='setup', module_args=dict(filter='ansible_pkg_mgr'), task_vars=task_vars)
|
|
|
|
facts = self._execute_module(module_name='setup', module_args=dict(filter='ansible_pkg_mgr'), task_vars=task_vars)
|
|
|
|
self._display.degug("Facts %s" % facts)
|
|
|
|
self._display.degug("Facts %s" % facts)
|
|
|
|
|
|
|
|
if not 'failed' in facts:
|
|
|
|
module = getattr(facts['ansible_facts'], 'ansible_pkg_mgr', 'auto')
|
|
|
|
module = getattr(facts['ansible_facts'], 'ansible_pkg_mgr', 'auto')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if module != 'auto':
|
|
|
|
if module != 'auto':
|
|
|
|
# run the 'package' module
|
|
|
|
# run the 'package' module
|
|
|
|
new_module_args = self._task.args.copy()
|
|
|
|
new_module_args = self._task.args.copy()
|
|
|
|