I searched around but didn't see anything that appeared to apply to the
Windows/Powershell application I need advice on. I've got a playbook that
works 100% fine *as long as a certain variable doesn't contain a "$"
character*. I realize the issue is that Powershell is interpreting that
and dropping the "$" and everything after it. Is there any way to escape a
variable such that it'll be interpreted simply as a string? Right now what
I'm doing is using the raw module and the command looks like this:
raw: 'echo some information here: {{ variable1 }} \\ {{ variable2 }} {{
variable3 }} > C:\test.txt'
Let's say it's the second variable that should be Test$123...what I'm
getting output to that file is simply Test. I've tried adjusting quote
position and type (single vs. double, etc.) and I'm guessing I just haven't
hit on the right combination...but I'd really appreciate any help.
--
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/68608d7b-1894-4c7b-bbbe-7925c9f9de6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.