Interview Prep/Ansible/Cloud, AWX, Windows and Molecule

A Windows task that copies from `\\fileserver\share` fails with `Access is denied`, although the same account works over RDP

AdvancedTroubleshootingCloud, AWX, Windows and Molecule
Answer

Likely causes → This is the Kerberos and NTLM double-hop problem. The WinRM session cannot pass your credentials on to a second server.

Fix → Choose one of these:

  • Kerberos with delegation: ansible_winrm_kerberos_delegation: true, with a forwardable ticket (kinit -f).
  • become: true, become_method: runas, and become_user: CORP\svc_ansible with a password, which creates a fresh logon that has network credentials.
  • CredSSP transport. It works, but it sends reusable credentials, so avoid it in high-security environments.

Prevent → Stage files from an HTTP artifact store with win_get_url instead of SMB shares, so no double hop is needed.

All Ansible questions Roadmap: Ansible

More on Cloud, AWX, Windows and Molecule