ansible-role
Generate and run a temporary playbook to execute an Ansible role on specified hosts with custom variables.
Instructions
Execute an Ansible role by generating a temporary playbook.
Args: role_name: Name of the role to execute. hosts: Target hosts pattern. inventory: Inventory path or host list. vars: Extra vars for the role. cwd: Working directory. check: Check mode. diff: Show diffs. verbose: Verbosity level 1-4. Returns: ansible_playbook() result dict
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| diff | No | ||
| vars | No | ||
| check | No | ||
| hosts | No | all | |
| verbose | No | ||
| inventory | No | ||
| role_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||