ssh_deploy
Upload local files to a remote server, moving them into place with optional backup, ownership, permissions, and service restart.
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 |
|---|---|---|---|
| files | Yes | Array of files to deploy | |
| server | Yes | Server name or alias | |
| options | No | Deployment options |