write_file
Overwrite a remote file on a configured host via SSH. Keeps a .bak backup of the previous version, and is refused on read-only hosts.
Instructions
Overwrite a remote file. Refused on read-only hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Configured host name | |
| path | Yes | Absolute path of the file to write | |
| backup | No | Keep a .bak copy of the previous version | |
| content | Yes | Full new contents of the file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |