From b6f2565d60885badd3fee0c1103181ef13bed34d Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Fri, 16 Dec 2016 00:04:49 +0100 Subject: [PATCH] Improve YAML examples - windows/win_template.py (#19408) --- lib/ansible/modules/windows/win_template.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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" - '''