Ensure Lines In File
ensure_lines_in_fileEnsure specified lines are present or absent in a remote file, optionally creating the file if it does not exist.
Instructions
Ensures specific lines are present or absent in a file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| lines | Yes | Lines to manage | |
| state | No | Desired state | |
| sessionId | Yes | SSH session ID | |
| createIfMissing | No | Create file if it does not exist |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| added | Yes |