# Check that you can connect to a page and it returns a status 200"
action: uri url=http://www.awesome.com method=GET"
# Check that a page returns a status 200 and fail if the word AWESOME is not in the page contents.
action: uri url=http://www.awesome.com method=GET return_content=yes
register: webpage
action: fail
when_string: '"AWESOME" not in "${webpage.content}"'
# "Create a JIRA issue."
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"
# Login to a form based webpage, then use the cookie that got returned to access the app in later tasks.
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}"
-Michael
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Which machine are the requests made from, the remote host or the local machine that runs Ansible?
Thanks, I think "make docs" were fine but it was evident issues came
up with "make webdocs" when they produced weirdness in the rst files
that Sphinx did not like.
If you want to try to fix those, that would be great, and I'll take them.
I am herding too many other random things :)
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a8d39219-f0b3-4521-8b01-04bd2a4257c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sorry to be a bother . . . can anyone say how I should be formatting the data ion my body here:
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/aefc1c30-dd58-4fa0-ba6f-662acf045e36%40googlegroups.com.
darned yaml/json . . . the space in my body was the problem!