mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Do not optimize with_items loop if the items are not strings
The code isn't sophisticated enough to understand lists and dicts yet. This mirrors how 1.9.x handled non-string items so its not a regression. One portion of a fix for #12976
This commit is contained in:
parent
da3087ffc4
commit
9e758d3d97
2 changed files with 30 additions and 17 deletions
|
@ -190,6 +190,12 @@ DEFAULT_BECOME_ASK_PASS = get_config(p, 'privilege_escalation', 'become_ask_pa
|
|||
|
||||
|
||||
# PLUGINS
|
||||
|
||||
# Modules that can optimize with_items loops into a single call. Currently
|
||||
# these modules must (1) take a "name" or "pkg" parameter that is a list. If
|
||||
# the module takes both, bad things could happen.
|
||||
# In the future we should probably generalize this even further
|
||||
# (mapping of param: squash field)
|
||||
DEFAULT_SQUASH_ACTIONS = get_config(p, DEFAULTS, 'squash_actions', 'ANSIBLE_SQUASH_ACTIONS', "apt, yum, pkgng, zypper, dnf", islist=True)
|
||||
# paths
|
||||
DEFAULT_ACTION_PLUGIN_PATH = get_config(p, DEFAULTS, 'action_plugins', 'ANSIBLE_ACTION_PLUGINS', '~/.ansible/plugins/action:/usr/share/ansible/plugins/action', ispath=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue