ansible-playbook
Run Ansible playbooks with custom inventory, variables, tags, and options like check mode or diff to automate infrastructure tasks.
Instructions
Run an Ansible playbook.
Args: playbook_path: Path to the playbook file. inventory: Optional inventory path or host list. extra_vars: Dict of variables passed via --extra-vars. tags: List of tags to include. skip_tags: List of tags to skip. limit: Host limit pattern. cwd: Working directory for the command. check: If true, run in check mode. diff: If true, show diffs. verbose: Verbosity level (1-4) corresponding to -v, -vv, -vvv, -vvvv. Returns: A dict with keys: ok (bool), rc, stdout, stderr, command
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| diff | No | ||
| tags | No | ||
| check | No | ||
| limit | No | ||
| verbose | No | ||
| inventory | No | ||
| skip_tags | No | ||
| extra_vars | No | ||
| playbook_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||