diff --git a/lib/ansible/plugins/action/package.py b/lib/ansible/plugins/action/package.py index fa412d45db..41d24d18b9 100644 --- a/lib/ansible/plugins/action/package.py +++ b/lib/ansible/plugins/action/package.py @@ -38,7 +38,7 @@ class ActionModule(ActionBase): pass # could not get it from template! if module == 'auto': - module = self._execute_module(module_name=setup, module_args={filter: 'ansible_pkg_mgr'}, task_vars=task_vars) + module = self._execute_module(module_name='setup', module_args={filter: 'ansible_pkg_mgr'}, task_vars=task_vars) if module != 'auto': # run the 'package' module