From 333b6bbaac1953592618594260cee20e8b917122 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 23 Feb 2013 12:03:33 -0500 Subject: [PATCH] Show how to use the more simplified way of including EXAMPLES in docs. We should update all module docs to do this. --- library/get_url | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/library/get_url b/library/get_url index a28656291ef..aa56bcb39d1 100644 --- a/library/get_url +++ b/library/get_url @@ -59,9 +59,6 @@ options: description: - all arguments accepted by the M(file) module also work here required: false -examples: - - code: "get_url: url=http://example.com/path/file.conf dest=/etc/foo.conf mode=0440" - description: "Example from Ansible Playbooks" notes: - This module doesn't yet support configuration for proxies. # informational: requirements for nodes @@ -69,6 +66,11 @@ requirements: [ urllib2, urlparse ] author: Jan-Piet Mens ''' +EXAMPLES=''' +get_url: url=http://example.com/path/file.conf dest=/etc/foo.conf mode=0440" +''' + + HAS_URLLIB2 = True try: import urllib2