Thanks, your solution worked. I changed the key/value syntax to the YAML syntax like you did in your example.
Am Donnerstag, 3. November 2016 16:26:26 UTC+1 schrieb Matt Davis: > > Stick to YAML syntax instead of Ansible key=value syntax and you don't > have to quote or escape at all: > > - win_copy > src: somelocalfile.bin > dest: c:\windows\somelocalfile.bin > > If you're in a situation where you need to quote, YAML single-quotes are > also escape-free. Double-quoting allows escape characters, which means > you'll either need to double your backslashes or switch to forward slashes > (*most* modules are OK with this, but there are a handful that fix the > paths up correctly). > > -Matt > > > On Wednesday, November 2, 2016 at 8:52:54 AM UTC-7, Tim wrote: >> >> Hi, >> >> I want to copy some files to the Startup folder using "win_copy". The >> problem is, that the destination directory is >> "dest=C:/ProgramData/Microsoft/Windows/Start >> Menu/Programs/StartUp/link.lnk" which has a space between "Start" and >> "Menu". >> I tried to escape that with quotation marks, but that didn't work. Is >> there another way to escape space? >> >> Thanks, >> Tim >> > -- 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/e46b1936-1311-47ba-86b4-0280d1a1cfba%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
