diff --git a/changelogs/fragments/72428-action-groups-docker-k8s.yml b/changelogs/fragments/72428-action-groups-docker-k8s.yml new file mode 100644 index 00000000000..bde0a0d0221 --- /dev/null +++ b/changelogs/fragments/72428-action-groups-docker-k8s.yml @@ -0,0 +1,2 @@ +bugfixes: +- "The ``docker`` and ``k8s`` action groups / module default groups now also support the moved modules in `community.docker `_, `community.kubevirt `_, `community.okd `_, and `kubernetes.core `_ (https://github.com/ansible/ansible/pull/72428)." diff --git a/lib/ansible/executor/module_common.py b/lib/ansible/executor/module_common.py index 1bb97e4738e..43ed850e02f 100644 --- a/lib/ansible/executor/module_common.py +++ b/lib/ansible/executor/module_common.py @@ -1357,9 +1357,9 @@ def get_action_args_with_defaults(action, args, defaults, templar, redirected_na 'aws': ['amazon.aws', 'community.aws'], 'azure': ['azure.azcollection'], 'cpm': ['wti.remote'], - 'docker': ['community.general'], + 'docker': ['community.general', 'community.docker'], 'gcp': ['google.cloud'], - 'k8s': ['community.kubernetes', 'community.general'], + 'k8s': ['community.kubernetes', 'community.general', 'community.kubevirt', 'community.okd', 'kubernetes.core'], 'os': ['openstack.cloud'], 'ovirt': ['ovirt.ovirt', 'community.general'], 'vmware': ['community.vmware'],