From f4629c2bdfb26e39376e9f4b409a0241fa287a9c Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 16 Feb 2013 18:45:59 -0500 Subject: [PATCH] Hate to do this, but URI module docs were constructing messed up RST files, so removing examples for now. Will ask someone to work on them. --- uri | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/uri b/uri index bb44c4a397c..7e5d0b6e314 100644 --- a/uri +++ b/uri @@ -105,40 +105,13 @@ options: required: false default: 200 HEADER_: - description: > - Any parameter starting with "HEADER_" is a sent with your request as a header. For example, - HEADER_Content-Type="application/json" would send the header "Content-Type" along with your - request with a value of "application/json". + description: Any parameter starting with "HEADER_" is a sent with your request as a header. For example, HEADER_Content-Type="application/json" would send the header "Content-Type" along with your request with a value of "application/json". required: false default: null others: description: - all arguments accepted by the M(file) module also work here required: false -examples: - - code: "uri: url=http://www.awesome.com method=GET" - description: "Check that you can connect to a page and it returns a status 200" - - - code: | - action: uri url=http://www.awesome.com method=GET return_content=yes - register: webpage - - action: fail - when_string: '"AWESOME" not in "${webpage.content}"' - - description: Check that a page returns a status 200 and the word AWESOME is in the page contents. - - - code: | - action: uri url=https://your.jira.server.com/rest/api/2/issue/ method=POST user=your_username password=your_pass body='$FILE(issue.json)' force_basic_auth=yes status_code=201 HEADER_Content-Type="application/json" - description: "Create a JIRA issue." - - - code: | - action: uri url=https://your.form.based.auth.app.com/index.php method=POST body="name=your_username&password=your_password&enter=Sign%20in" status_code=302 HEADER_Content-Type="application/x-www-form-urlencoded" - register: login - - action: uri url=https://your.form.based.auth.app.com/dashboard.php method=GET return_content=yes HEADER_Cookie="${login.set_cookie}" - description: "Login to a form based webpage, then use the cookie that got returned to access the app in later tasks." - # informational: requirements for nodes requirements: [ urlparse, httplib2 ] author: Romeo Theriault