diff options
author | Michael DeHaan <michael@ansibleworks.com> | 2013-07-19 09:37:19 -0400 |
---|---|---|
committer | Michael DeHaan <michael@ansibleworks.com> | 2013-07-19 09:37:19 -0400 |
commit | 86ddbb224b618cbf6758bb61f40386c0ccd1a884 (patch) | |
tree | 1f7fb19bcdad23c8e6a413d5136177db647aff93 /library/network | |
parent | 303a8ff5633a069ab2736d8a12db9b1cbbe51128 (diff) | |
download | ansible-86ddbb224b618cbf6758bb61f40386c0ccd1a884.tar.gz |
Trim old style var references
Diffstat (limited to 'library/network')
-rw-r--r-- | library/network/uri | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/network/uri b/library/network/uri index 5ab0f15d66..a58c49d0e6 100644 --- a/library/network/uri +++ b/library/network/uri @@ -135,14 +135,14 @@ EXAMPLES = ''' register: webpage - action: fail - when_string: '"AWESOME" not in "${webpage.content}"' + when: 'AWESOME' not in "{{ webpage.content }}" # Create a JIRA issue. - action: > uri url=https://your.jira.example.com/rest/api/2/issue/ method=POST user=your_username password=your_pass - body='$FILE(issue.json)' force_basic_auth=yes + body="{{ lookup('file','issue.json') }}" force_basic_auth=yes status_code=201 HEADER_Content-Type="application/json" - action: > @@ -154,7 +154,7 @@ EXAMPLES = ''' # Login to a form based webpage, then use the returned cookie to # access the app in later tasks. - action: uri url=https://your.form.based.auth.example.com/dashboard.php - method=GET return_content=yes HEADER_Cookie="${login.set_cookie}" + method=GET return_content=yes HEADER_Cookie="{{login.set_cookie}}" ''' HAS_HTTPLIB2 = True |