Documentation

slurp - Slurps a file from remote nodes

Synopsis

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

Options

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

    Examples

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

    Notes

    Note

    See also: fetch

    This is a Core Module

    For more information on what this means please read Core Modules

    For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.