Which ansible version are you using?

1.9.1 contains the action plugin for win_template, but needs win_file and 
win_copy modules to work, which weren't included in that release.

I just pushed a couple of PRs to improve win_copy / win_file / win_template 
and would be grateful for any feedback if you could test.

PRs are:

ansible/ansible#11086 <https://github.com/ansible/ansible/pull/11086>
and
#1438 <https://github.com/ansible/ansible-modules-core/pull/1438>

Jon
On Thursday, May 28, 2015 at 6:46:13 PM UTC+1, Jake Dupuy wrote:
>
> Thanks for the reply, I've got a work around but do need to figure out 
> what was going wrong:
>
> - name: create script locally
>   local_action: template dest="{{ my_dest }}" src="{{ my_template }}"
>
> - name: run ps script on remote
>   script: "{{ my_ps_script }}"
>
> On Thursday, May 28, 2015 at 7:04:42 AM UTC-5, Jake Dupuy wrote:
>>
>> someone please help me out. I cannot get win_template or win_copy to 
>> work. I'm able to do a simple ipconfig test to confirm that ansible is 
>> working with windows I've got some powershell scripts that I need to have 
>> in a template with vars so I can put them on the windows box and run them. 
>> I've got a roles structure setup
>>
>> when I do this>>
>> - name: check file dir
>>   win_stat: path=C:\temp
>>   register: win_test
>>
>> - name: debug
>>   debug: var=win_test
>>
>> >>>output of the debug
>> ok: [172.16.0.81] => {
>>     "var": {
>>         "win_test": {
>>             "changed": false,
>>             "invocation": {
>>                 "module_args": "path=C:\\temp",
>>                 "module_name": "win_stat"
>>             },
>>             "stat": {
>>                 "exists": true,
>>                 "isdir": true
>>             }
>>         }
>>     }
>> }
>> >>>
>>
>> - name: copy template
>>   win_template: dest=C:\temp src="{{ template_ps1 }}"
>>
>> >>>  but when I try and use the win_template I get:
>> "ERROR: win_template is not a legal parameter in an Ansible task or 
>> handler"
>>
>

-- 
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/5c568b84-6507-4063-8f48-4c55252ae7cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to