This module works like fetch. It is used for fetching a base64- encoded blob containing the data in a remote file.
ansible host -m slurp -a 'src=/tmp/xx' host | success >> { "content": "aGVsbG8gQW5zaWJsZSB3b3JsZAo=", "encoding": "base64" }
Note
See also: fetch
get_url - Downloads files from HTTP, HTTPS, or FTP to node
uri - Interacts with webservices
Enter search terms or a module, class or function name.