You were right Jon. I needed to escape the backslashes. This worked:

dest="C:\\temp\\test.conf"


Thanks!

-Joe



On Monday, February 1, 2016 at 3:38:05 PM UTC-8, Joe Levis wrote:
>
> Not sure what I'm doing wrong here. I've tried all different styles of 
> configuration with no success. I'm trying to templatize a config file on a 
> Windows Server 2012 R2, but it's throwing the below error:
>
> *"failed": true, "invocation": {"module_args": {"dest": 
> "C:\temp\test.conf", "src": "templates/config.j2"}, "module_name": 
> "win_template"}, "msg": "Illegal characters in path."}*
>
> *Playbook:*
>
> ---
>
> - include_vars: variables.yml
>
> - name: Config file
>
>   win_template: src=templates/config.j2 dest=C:\temp\test.conf
>
>
> *variables.yml:*
>
> test_password: test123!
>
>
> *templates/config.j2:*
>
> password={{ test_password }}
>
>
> What exactly is the illegal argument? I'm using Ansible 2.0.0.2 on Ubuntu 
> 14.04.
>

-- 
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/8627777b-d6cd-4718-a500-c75e16b9efb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to