slurp

Collection: builtin

Full Name: parallax.builtin.slurp

Aliases: ansible.builtin.slurp, slurp

Synopsis

Read a file from the target and return it base64-encoded

Parameters

NameTypeRequiredDefaultDescription
srcstringyesThe file on the remote system to fetch

Example

- name: Read the machine id back to the controller
  slurp:
    src: /etc/machine-id
  register: machine_id