ssh_deploy
Deploy local files to remote servers by uploading to temporary location and moving into place. Supports backup, owner/permissions, service restart, and pre/post hooks.
Instructions
Deploys a list of local files to remote paths on the named server, uploading each to a temporary location first and then moving it into place. Mutates remote state. By default it backs up any existing target file before overwriting; backup can be disabled per call. Options can set owner and permissions, supply a sudo password, and name a single service to restart afterward. Detects sensible owner and permission defaults from the remote path. Runs pre and post deploy hooks. Blocked entirely on servers in readonly or restricted security mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server name or alias | |
| files | Yes | Array of files to deploy | |
| options | No | Deployment options |