Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
333b6bba
Commit
333b6bba
authored
Feb 23, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show how to use the more simplified way of including EXAMPLES in docs. We should update
all module docs to do this.
parent
e5170771
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
library/get_url
+5
-3
No files found.
library/get_url
View file @
333b6bba
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment