From 3cd84779480a85741c4a1a3ca39deec56e67f2d8 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 1 Nov 2020 10:20:03 +0100 Subject: [PATCH] Support docker and k8s action groups for moved modules in community.docker and community.kubevirt. --- changelogs/fragments/77247-action-groups-docker-k8s.yml | 2 ++ lib/ansible/executor/module_common.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/77247-action-groups-docker-k8s.yml diff --git a/changelogs/fragments/77247-action-groups-docker-k8s.yml b/changelogs/fragments/77247-action-groups-docker-k8s.yml new file mode 100644 index 00000000000..6ca6415f71e --- /dev/null +++ b/changelogs/fragments/77247-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](https://galaxy.ansible.com/community/docker) and [community.kubevirt](https://github.com/ansible-collections/community.kubevirt) (https://github.com/ansible/ansible/pull/72427)." diff --git a/lib/ansible/executor/module_common.py b/lib/ansible/executor/module_common.py index 1bb97e4738e..cc9cbb07d44 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'], 'os': ['openstack.cloud'], 'ovirt': ['ovirt.ovirt', 'community.general'], 'vmware': ['community.vmware'],