import_playbook
Import another playbook at the document top level
Collection: builtin
Full Name: parallax.builtin.import_playbook
Aliases: import_playbook, ansible.builtin.import_playbook
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Import another playbook at the document top level
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| free_form | string | yes | Playbook file to import at the top level, outside a tasks list |
Example
yaml
- name: Import the database plays
ansible.builtin.import_playbook: database.yml