ansible-task
Run an Ansible task ad-hoc against specified hosts with optional become, check mode, and extra variables.
Instructions
Run a single Ansible task ad-hoc
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Ansible task to run (module and args) | |
| hosts | No | Target hosts | localhost |
| inventory | No | Path to inventory file | |
| become | No | Use sudo/become | |
| extraVars | No | Extra variables | |
| check | No | Run in check mode | |
| verbose | No | Enable verbose output |