Skip to main content
The files operations handles filesystem state, file uploads and template generation.

Functions

files.download

Download files from remote locations using curl or wget.

files.put

Upload a local file, or file-like object, to the remote system.

files.template

Generate a template using jinja2 and write it to the remote system.

files.line

Ensure lines in files using grep to locate and sed to replace.

files.replace

Replace contents of a file using sed.

files.sync

Syncs a local directory with a remote one, with delete support.

files.directory

Add/remove/update directories.

files.file

Add/remove files.
Add/remove/update links.

Examples