I'm trying to run a (PowerShell) script with a path in its name:
```
- name: Run a script
script: '"./files/name of a script.ps1" -Param1 {{ variable_name }}'
```
The above is only the latest attempting at quoting/escaping I've tried.
Regardless, I get an error like this when I run the playbook containing the
above task:
```
TASK [Run a script] *****************************
task path: /etc/ansible/playbook.yml:38
<192.168.200.245> ESTABLISH WINRM CONNECTION FOR USER:
SOME-HOST\Administrator on PORT 5986 TO 192.168.200.245
<192.168.200.245> EXEC Set-StrictMode -Version Latest
(New-Item -Type Directory -Path $env:temp -Name
"ansible-tmp-1466538051.8-95578181041077").FullName | Write-Host -Separator
'';
<192.168.200.245> PUT "/etc/ansible/"./files/name\" TO
"C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1466537998.0-243829631467080\name"
fatal: [some-host]: FAILED! => {"failed": true, "msg": "file or module does
not exist: \"/etc/ansible/\"./files/name\\\""}
```
Any ideas?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/c47b22ba-2d85-47c7-a0b3-c0028e5242dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.