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

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.

All Ansible questions Roadmap: Ansible

More on Cloud, AWX, Windows and Molecule