|
|
@ -135,14 +135,14 @@ EXAMPLES = '''
|
|
|
|
register: webpage
|
|
|
|
register: webpage
|
|
|
|
|
|
|
|
|
|
|
|
- action: fail
|
|
|
|
- action: fail
|
|
|
|
when_string: '"AWESOME" not in "${webpage.content}"'
|
|
|
|
when: 'AWESOME' not in "{{ webpage.content }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Create a JIRA issue.
|
|
|
|
# Create a JIRA issue.
|
|
|
|
- action: >
|
|
|
|
- action: >
|
|
|
|
uri url=https://your.jira.example.com/rest/api/2/issue/
|
|
|
|
uri url=https://your.jira.example.com/rest/api/2/issue/
|
|
|
|
method=POST user=your_username password=your_pass
|
|
|
|
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"
|
|
|
|
status_code=201 HEADER_Content-Type="application/json"
|
|
|
|
|
|
|
|
|
|
|
|
- action: >
|
|
|
|
- action: >
|
|
|
@ -154,7 +154,7 @@ EXAMPLES = '''
|
|
|
|
# Login to a form based webpage, then use the returned cookie to
|
|
|
|
# Login to a form based webpage, then use the returned cookie to
|
|
|
|
# access the app in later tasks.
|
|
|
|
# access the app in later tasks.
|
|
|
|
- action: uri url=https://your.form.based.auth.example.com/dashboard.php
|
|
|
|
- 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
|
|
|
|
HAS_HTTPLIB2 = True
|
|
|
|