Raising `ansible_winrm_operation_timeout_sec` breaks every Windows host with `read_timeout_sec must exceed operation_timeout_sec, and both must be non-zero`
AdvancedTroubleshootingCloud, AWX, Windows and Molecule
Answer
Likely causes → pywinrm requires the HTTP read timeout to be greater than the WinRM operation timeout. The defaults are 30 and 20 seconds. Someone raised only the operation timeout to deal with slow tasks.
Fix → Raise both, keeping the read timeout higher:
ansible_winrm_operation_timeout_sec: 60
ansible_winrm_read_timeout_sec: 90
For long-running work (Windows Updates, large installers), do not keep inflating timeouts. Use the module's own options (for example ansible.windows.win_updates with reboot: true) or async/poll.
Prevent → Keep WinRM tuning in group_vars/windows.yml with a comment explaining it, and test changes against one Windows host before rolling them out.
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