mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 21:01:13 +00:00
updated package to use minimal fact gathering
also fixed results handling of fact gathering
This commit is contained in:
@@ -46,9 +46,9 @@ class ActionModule(ActionBase):
|
||||
pass # could not get it from template!
|
||||
|
||||
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)
|
||||
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')
|
||||
|
||||
if module != 'auto':
|
||||
|
||||
Reference in New Issue
Block a user