updated package to use minimal fact gathering
also fixed results handling of fact gatheringpull/4420/head
parent
f07d6b26a7
commit
44bd1db976
|
@ -46,9 +46,9 @@ class ActionModule(ActionBase):
|
||||||
pass # could not get it from template!
|
pass # could not get it from template!
|
||||||
|
|
||||||
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', gather_subset='!all'), task_vars=task_vars)
|
||||||
display.debug("Facts %s" % facts)
|
display.debug("Facts %s" % facts)
|
||||||
if 'failed' not in facts:
|
if 'ansible_facts' in facts and 'ansible_pkg_mgr' in facts['ansible_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':
|
||||||
|
|
Loading…
Reference in New Issue