Updated on 2023-05-04 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

When the host runs a Windows OS, if the path uses backslashes (\), rather than forward slashes (/), this error will occur.

Solution

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

Starting or Stopping Nginx FAQs

more