1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Show how to use the more simplified way of including EXAMPLES in docs. We should update

all module docs to do this.
This commit is contained in:
Michael DeHaan 2013-02-23 12:03:33 -05:00
parent e51707711c
commit 333b6bbaac

View file

@ -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