import_tasks
Collection: builtin
Full Name: parallax.builtin.import_tasks
Aliases: ansible.builtin.import_tasks, import_tasks
Synopsis
Statically include a task file at parse time
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| free_form | string | yes | The name of the imported file is specified directly without any other option | |
| file | string | The name of the imported file |
Example
- name: Import the hardening tasks
import_tasks:
file: tasks/hardening.yml