Ansible Ad-Hoc command - raw module not working on Cisco IOS devices

trying to use Ad Hoc commands on both my Cisco ios Router and Switch with the -m raw Module. But getting the following error instead.

$ansible -i inventory_file02.ini netgrp -m raw -a “show version” -u abdo -K

Error====

BECOME password: R1 | FAILED | rc=127 >> /bin/sh: 1: show: not found non-zero return code SW1 | FAILED | rc=127 >> /bin/sh: 1: show: not found non-zero return code

Inventory file=====

R1 ansible_host=192.168.20.1 SW1 ansible_host=192.168.10.2 [netgrp] R1 SW1

group_vars/netgrp.yml===

— ansible_connection: network_cli ansible_network_os: ios ansible_user: abdo absible_password: kali/abdo ansible_become: yes ansible_become_method: enable ansible_ssh_pass: kali/abdo

$ ansible -i inventory_file02.ini netgrp -m raw -a “show version” -u abdo -kK -vvv

ansible [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = [‘/home/kali/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’] ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible ansible collection location = /home/kali/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible python version = 3.10.4 (main, Mar 24 2022, 13:07:27) [GCC 11.2.0] jinja version = 3.0.3 libyaml = True Using /etc/ansible/ansible.cfg as config file SSH password: BECOME password[defaults to SSH password]: host_list declined parsing /home/kali/ansible_play01/net_play02/inventory_file02.ini as it did not pass its verify_file() method script declined parsing /home/kali/ansible_play01/net_play02/inventory_file02.ini as it did not pass its verify_file() method auto declined parsing /home/kali/ansible_play01/net_play02/inventory_file02.ini as it did not pass its verify_file() method yaml declined parsing /home/kali/ansible_play01/net_play02/inventory_file02.ini as it did not pass its verify_file() method Parsed /home/kali/ansible_play01/net_play02/inventory_file02.ini inventory source with ini plugin Skipping callback ‘default’, as we already have a stdout callback. Skipping callback ‘minimal’, as we already have a stdout callback. Skipping callback ‘oneline’, as we already have a stdout callback. META: ran handlers redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli redirecting (type: terminal) ansible.builtin.ios to cisco.ios.ios redirecting (type: cliconf) ansible.builtin.ios to cisco.ios.ios redirecting (type: terminal) ansible.builtin.ios to cisco.ios.ios redirecting (type: become) ansible.builtin.enable to ansible.netcommon.enable redirecting (type: cliconf) ansible.builtin.ios to cisco.ios.ios redirecting (type: become) ansible.builtin.enable to ansible.netcommon.enable <192.168.10.2> ESTABLISH LOCAL CONNECTION FOR USER: kali <192.168.10.2> EXEC show version <192.168.20.1> ESTABLISH LOCAL CONNECTION FOR USER: kali <192.168.20.1> EXEC show version SW1 | FAILED | rc=127 >> /bin/sh: 1: show: not found