After further poking around after the win_package is parsed out to the windows machine. Every backslash that is entered into the arguments is doubled for the $complex_args variable in the powershell script that is ran on the windows machine.
So - "-s -f1".\setup.iss" becomes "-s -f1".\\setup.iss" - "-s -f1".\\setup.iss" becomes "-s -f1".\\\\setup.iss" - "-s -f1"C:\\Users\\UserName\\Desktop\\Software\\setup.iss" becomes "-s -f1"C:\\\\Users\\\\UserName\\\\Desktop\\\\Software\\\\setup.iss"" I even set an enviroment variable for the full path of setup.iss and tried to invoke it with - "-s -f1\'$env:referenceFilePath\' " ( \' in order to escape the single quote required to evaluate a variable in a double quote of a .ps1) Unfortunately, this did not work with win_package. Though it did work when I created a quick script on the local machine for testing. It seems to me that the win_package parses the argument string in an odd way. -- 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/9b1cad32-c52a-48be-8810-7fd8fae498d1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
