|
|
|
|
@ -18,9 +18,7 @@ version_added: '2.4'
|
|
|
|
|
options:
|
|
|
|
|
file:
|
|
|
|
|
description:
|
|
|
|
|
- The name of the imported file is specified directly without any other option.
|
|
|
|
|
- Unlike M(ansible.builtin.import_tasks), most keywords, including loop, with_items, and conditionals, apply to this statement.
|
|
|
|
|
- The do until loop is not supported on M(ansible.builtin.include_tasks).
|
|
|
|
|
- Specifies the name of the file that lists tasks to add to the current playbook.
|
|
|
|
|
type: str
|
|
|
|
|
version_added: '2.7'
|
|
|
|
|
apply:
|
|
|
|
|
@ -31,8 +29,10 @@ options:
|
|
|
|
|
free-form:
|
|
|
|
|
description:
|
|
|
|
|
- |
|
|
|
|
|
Supplying a file name via free-form C(- include_tasks: file.yml) of a file to be included is the equivalent
|
|
|
|
|
of specifying an argument of I(file).
|
|
|
|
|
Specifies the name of the imported file directly without any other option C(- include_tasks: file.yml).
|
|
|
|
|
- Is the equivalent of specifying an argument for the I(file) parameter.
|
|
|
|
|
- Most keywords, including loop, with_items, and conditionals, apply to this statement unlike M(ansible.builtin.import_tasks).
|
|
|
|
|
- The do-until loop is not supported.
|
|
|
|
|
extends_documentation_fragment:
|
|
|
|
|
- action_common_attributes
|
|
|
|
|
- action_common_attributes.conn
|
|
|
|
|
@ -60,7 +60,8 @@ EXAMPLES = r'''
|
|
|
|
|
msg: task1
|
|
|
|
|
|
|
|
|
|
- name: Include task list in play
|
|
|
|
|
ansible.builtin.include_tasks: stuff.yaml
|
|
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
|
file: stuff.yaml
|
|
|
|
|
|
|
|
|
|
- ansible.builtin.debug:
|
|
|
|
|
msg: task10
|
|
|
|
|
|