diff --git a/changelogs/fragments/69788_fqcr_command_shell.yml b/changelogs/fragments/69788_fqcr_command_shell.yml new file mode 100644 index 00000000000..9d2db44e28d --- /dev/null +++ b/changelogs/fragments/69788_fqcr_command_shell.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - "Use fqcr from command module invocation using shell module. Fixes https://github.com/ansible/ansible/issues/69788" \ No newline at end of file diff --git a/lib/ansible/plugins/action/shell.py b/lib/ansible/plugins/action/shell.py index b2ebe174971..d383535904c 100644 --- a/lib/ansible/plugins/action/shell.py +++ b/lib/ansible/plugins/action/shell.py @@ -17,7 +17,7 @@ class ActionModule(ActionBase): self._task.action = 'command' self._task.args['_uses_shell'] = True - command_action = self._shared_loader_obj.action_loader.get('command', + command_action = self._shared_loader_obj.action_loader.get('ansible.legacy.command', task=self._task, connection=self._connection, play_context=self._play_context,