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, andbecome_user: CORP\svc_ansiblewith 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.
More on Cloud, AWX, Windows and Molecule
`Failed to import the required Python library (botocore and boto3) on web01's Python /usr/bin/python3.`Beginner`[WARNING]: * Failed to parse inventory/aws.yml with auto plugin: inventory source 'inventory/aws.yml' could not be verified by inventory plugin 'amazon.aws.aws_ec2'`IntermediateThe `aws_ec2` inventory parses without errors but returns zero hostsIntermediate`Failed to describe instances: An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation` or `(ExpiredToken)`IntermediateDynamic inventory finds the instances, but every host is `UNREACHABLE`IntermediateUsing the SSM connection plugin fails with `SessionManagerPlugin is not found` or hangs on file transferAdvanced