Modified files to use single quotes rather than double for file path. Powershell does not process $ variables in strings that are single quoted. Powershell DOES process $ variables that are in double quoted strings.

Using single quotes enables ansible to  handle file paths that contain folders that start with $. (i.e. C:/Users/$admin/...)
This commit is contained in:
root 2016-03-11 14:00:28 -05:00
commit 2aba1c211d
2 changed files with 2 additions and 2 deletions

View file

@ -274,7 +274,7 @@ class Connection(ConnectionBase):
script_template = u'''
begin {{
$path = "{0}"
$path = '{0}'
$DebugPreference = "Continue"
$ErrorActionPreference = "Stop"