command / shell Module

May 8, 2026 ยท View on GitHub

Execute commands; specific behavior is determined by the connector type (e.g., local/ssh execute Shell, kubernetes executes kubectl, etc.).

Parameters

ParameterDescriptionTypeRequiredDefault
commandCommand to execute. Can use template syntaxstringYes-

Usage Examples

1. Execute Shell command (connector is local or ssh)

- name: execute shell command
  command: echo "aaa"

2. Execute Kubernetes command (connector is kubernetes)

- name: executor kubernetes command
  command: kubectl get pod