ansible/docsite/rst/modules/slurp.rst
2012-10-08 07:44:38 -04:00

953 B

slurp

This module works like fetch. It is used for fetching a base64- encoded blob containing the data in a remote file.

parameter required default choices comments
src yes
    The file on the remote system to fetch. This must be a file, not a directory.

    Example using /usr/bin/ansible

    ansible host -m slurp -a 'src=/tmp/xx'
    host | success >> {
       "content": "aGVsbG8gQW5zaWJsZSB3b3JsZAo=", 
       "encoding": "base64"
    }
    
    


    Notes

    See also: fetch