host_exec
Run arbitrary shell commands across Linux hosts over SSH, using sudo when configured. Each rollout starts as a dry run and applies the confirmed plan one host at a time.
Instructions
Run an arbitrary shell command on hosts (bash, through sudo when configured). For anything the dedicated tools do not cover. Output tail per host; the journal keeps the command. Parallel by default (batch 10).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | false (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash | |
| batch | No | hosts at a time (rolling). Default depends on the action: 1 for disruptive ones | |
| asUser | No | run as the ssh user instead of root | |
| target | No | hosts: all | <host> | <glob nl-*> | <group> | role:<edge|remnanode|panel|docker> | tag:<tag>; comma-separated, !x excludes | all |
| command | Yes | ||
| planHash | No | planHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since | |
| timeoutSec | No | ||
| continueOnError | No | keep going after a host fails (default: stop the rollout at the first failure) | |
| skipUnreachable | No | skip hosts that do not answer over ssh instead of refusing the whole plan (they show as skipped) |