Skip to content

Instantly share code, notes, and snippets.

@jimi-c
Created August 3, 2017 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimi-c/77f44584a40556ff88a23de299e29f81 to your computer and use it in GitHub Desktop.
Save jimi-c/77f44584a40556ff88a23de299e29f81 to your computer and use it in GitHub Desktop.
$ ansible -m uri -a "url=http://localhost:8888/whatever follow_redirects=yes" localhost
localhost | FAILED! => {
"changed": false,
"content": "",
"failed": true,
"location": "file:///etc/passwd",
"msg": "Status code was not [200]: HTTP Error 301: Found - Redirection to url 'file:///etc/passwd' is not allowed",
"redirected": false,
"status": 301,
"url": "http://localhost:8888/whatever"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment