issues w.r.t chromeos test image as ansible host

Hi All,
I am trying to add a chromeOS test image based DUT to ansible inventory but not able to run any script on it using ansible.
But when changed to network OS in hosts config ping works fine. But running a bash script doesn’t work. I have also tried changing ansible.cfg file to reflect remote_temp to /tmp which has right permission and remote_user as root but no help.

Below is what I have tried so far. Can anybody help ?

hosts file config:
[duts]
172.25.235.142 ansible_password=test0000 ansible_user=root

Running a playbook:

ansible-playbook remote_script_dut.yml

PLAY [Transfer and execute a script.] *********************************************************************************************************************************************************************

TASK [Copy and Execute the script] ************************************************************************************************************************************************************************
fatal: [172.25.235.142]: UNREACHABLE! => {“changed”: false, “msg”: “Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp". Failed command was: ( umask 77 && mkdir -p "echo /root/.ansible/tmp/ansible-tmp-1656530218.5656176-121124387873189" && echo ansible-tmp-1656530218.5656176-121124387873189="echo /root/.ansible/tmp/ansible-tmp-1656530218.5656176-121124387873189" ), exited with result 1”, “unreachable”: true}

PLAY RECAP ************************************************************************************************************************************************************************************************
172.25.235.142 : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0

ansible duts -m ping -vvvv
ansible 2.9.6
config file = /etc/ansible/ansible.cfg

<172.25.235.142> (0, b’/root\n’, b’OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for \r\ndebug2: resolve_canonicalize: hostname 172.25.235.142 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket “/home/cssdesk/.ansible/cp/f9610a0af3” does not exist\r\ndebug2:
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 67343
debug3: mux_client_request_session: session request sent
mkdir: cannot create directory ‘/root/.ansible’: Read-only file system
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
172.25.235.142 | UNREACHABLE! => {
“changed”: false,
“msg”: "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp". Failed command was: ( umask 77 && mkdir -p "echo /root/.ansible/tmp/ansible-tmp-1656530410.1564126-265903908945916" && echo ansible-tmp-1656530410.1564126-265903908945916="echo /root/.ansible/tmp/ansible-tmp-1656530410.1564126-265903908945916" ), exited with result 1, stderr output: OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/
.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 172.25.235.142 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 67343\r\ndebug3: mux_client_request_session: session request sent\r\nmkdir: cannot create directory ‘/root/.ansible’: Read-only file system\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n",
“unreachable”: true
}