win11 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to create temporary directory. 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\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo ~/.ansible/tmp `\"&& mkdir \"` echo ~/.ansible/tmp/ansible-tmp-1752053110.016204-4679-123677624522219 `\" && echo ansible-tmp-1752053110.016204-4679-123677624522219=\"` echo ~/.ansible/tmp/ansible-tmp-1752053110.016204-4679-123677624522219 `\" ), exited with result 1",
"unreachable": true
}
Have a read through Windows SSH — Ansible Community Documentation. You need to configure ansible_shell_type for your host so Ansible knows it is a Windows target and to avoid using things that won’t work on Windows.