-
Notifications
You must be signed in to change notification settings - Fork 23.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module_defaults for yum do not get picked up when invoked via package #72918
Comments
The problem lies here: ansible/lib/ansible/plugins/action/package.py Lines 73 to 76 in a24f51d
We may have to extract this logic into some form of helper so that we can use it to build a list based on the selected action/module: ansible/lib/ansible/parsing/mod_args.py Lines 308 to 315 in da60525
I'm not sure that we can just pass This issue will likely affect:
|
…ansible#73864) * Fix module-specific defaults in the gather_facts, package, and service action plugins. * Handle ansible.legacy actions better in get_action_args_with_defaults * Add tests for each action plugin * Changelog Fixes ansible#72918 (cherry picked from commit 5640093)
…ansible#73864) * Fix module-specific defaults in the gather_facts, package, and service action plugins. * Handle ansible.legacy actions better in get_action_args_with_defaults * Add tests for each action plugin * Changelog Fixes ansible#72918 (cherry picked from commit 5640093)
…74850) * Use the module redirect_list when getting defaults for action plugins (#73864) * Fix module-specific defaults in the gather_facts, package, and service action plugins. * Handle ansible.legacy actions better in get_action_args_with_defaults * Add tests for each action plugin * Changelog Fixes #72918 (cherry picked from commit 5640093) * Fix tests for < 3.8 (cherry picked from commit 267b721)
…74849) * Use the module redirect_list when getting defaults for action plugins (#73864) * Fix module-specific defaults in the gather_facts, package, and service action plugins. * Handle ansible.legacy actions better in get_action_args_with_defaults * Add tests for each action plugin * Changelog Fixes #72918 (cherry picked from commit 5640093) * Fix tests for < 3.8
v2.10.11 ======== Security Fixes -------------- - templating engine fix for not preserving usnafe status when trying to preserve newlines. CVE-2021-3583 Bugfixes -------- - gather_facts, package, service - fix using module_defaults for the modules in addition to the action plugins. (ansible/ansible#72918) - psrp - Always cleanup the last run pipeline if a second pipeline is invoked to avoid violating any resource limits. - psrp - Fix error when resetting a connection that was initialised but not connected - (ansible/ansible#74092). - psrp - Try to clean up any server-side resources when resetting a connection.
SUMMARY
In 2.10.x,
module_defaults
foryum
do not get picked up when invoked viapackage
. It works fine with 2.9.x.This seems to be a regression of #57482 - basing this bug report largely on that original issue.
ISSUE TYPE
COMPONENT NAME
module_defaults
ANSIBLE VERSION
OS / ENVIRONMENT
CentOS 7
STEPS TO REPRODUCE
EXPECTED RESULTS
lock_timeout is set to 120 for both tasks
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: