Updated on 2024-11-13 GMT+08:00

Invalid Windows Host Path

Symptoms

An error message containing has an invalid path is displayed.

"msg": "Get-AnsibleParam: Parameter 'chdir' has an invalid path 'C:\\xxx\nginx\nginx-1.16.1' specified."

Cause Analysis

Your host runs a Windows OS, but the path uses backslashes (\) rather than forward slashes (/).

Solution

Change the backslash (\) in the path to a forward slash (/).