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

NameTypeRequiredDefaultDescription
free_formstringyesThe name of the imported file is specified directly without any other option
filestringThe name of the imported file

Example

- name: Import the hardening tasks
  import_tasks:
    file: tasks/hardening.yml