ansible-remote-command
Execute shell commands on remote hosts using Ansible, with optional privilege escalation and timeout. Parsed output for clear results.
Instructions
Execute arbitrary shell commands on remote hosts with enhanced output parsing.
Args: host_pattern: Target hosts pattern command: Shell command to execute project_root: Project root directory ansible_cfg_path: Ansible config file path inventory_paths: Inventory file paths become: Use privilege escalation timeout: Command timeout in seconds
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| become | No | ||
| command | Yes | ||
| timeout | No | ||
| host_pattern | Yes | ||
| project_root | No | ||
| inventory_paths | No | ||
| ansible_cfg_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||