diff --git a/lib/ansible/modules/windows/win_template.py b/lib/ansible/modules/windows/win_template.py index f93307a0fc..c8c51e0cef 100644 --- a/lib/ansible/modules/windows/win_template.py +++ b/lib/ansible/modules/windows/win_template.py @@ -60,13 +60,9 @@ notes: author: "Jon Hawkesworth (@jhawkesworth)" ''' -EXAMPLES = ''' -# Playbook Example -- win_template: +EXAMPLES = r''' +- name: Create a file from a Jinja2 template + win_template: src: /mytemplates/file.conf.j2 dest: C:\temp\file.conf - -# Ad-hoc Example -ansible winhost -m win_template -a "src=/mytemplates/file.conf.j2 dest=c:/temp/file.conf" - '''