ssh_execute_group
Executes a command on every server in a group, returning a per-server success/failure report. Supports parallel, sequential, or rolling execution with optional stop-on-error.
Instructions
Runs one command on every server belonging to the named group and returns a per-server success or failure report. Members come from the groups defined with ssh_group_manage plus every server whose configuration carries a matching group field, so a group can exist through the config alone. Mutates remote state on each member and is not idempotent. Best-effort: the security policy of each server is evaluated independently, so readonly or restricted members are reported as failed without aborting the rest unless stopOnError is set. Strategy may be parallel, sequential, or rolling (delay applies between servers). Per-server timeout is 30000 ms; cwd defaults to the default_dir of each server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| delay | No | Delay between servers in ms (for rolling) | |
| group | Yes | Group name (e.g., "production", "staging", "all") | |
| command | Yes | Command to execute | |
| strategy | No | Execution strategy | |
| stopOnError | No | Stop execution on first error |