Some action plugins remove FQCN #60308
Labels
affects_2.9
This issue/PR affects Ansible v2.9
affects_2.10
This issue/PR affects Ansible v2.10
bug
This issue/PR relates to a bug.
collection
Related to Ansible Collections work
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
Some action plugins use hardcoded module names which results in removing FQCN. Need to audit action plugins and take
task.action
into account?Example:
ansible/lib/ansible/plugins/action/yum.py
Line 69 in 49e1692
ISSUE TYPE
COMPONENT NAME
action plugins
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
STEPS TO REPRODUCE
Following the example from the summary above: have a collection with
action/yum.py
andmodules/yum.py
(copied over fromlib/ansible/plugins/action/yum.py
andlib/ansible/modules/packaging/os/yum.py
). Run a task using FQCN:my_namespace.my_collection.yum
.Do not have the collection specified in
collections:
which workarounds the issue.EXPECTED RESULTS
my_namespace.my_collection.yum
is executed.ACTUAL RESULTS
Whatever the action plugin puts into
module_name
that is passed intoexecute_module
is executed.The text was updated successfully, but these errors were encountered: