| 1 |
--- |
| 2 |
- name: include_task_with_vars | Var1 |
| 3 |
ansible.builtin.include_tasks: file=../tasks/included-task-with-vars.yml |
| 4 |
|
| 5 |
- name: include_task_with_vars | Var2 |
| 6 |
ansible.builtin.include_tasks: ../tasks/included-task-with-vars.yml |
| 7 |
vars: |
| 8 |
var_naming_pattern_1: bar |
| 9 |
_var_naming_pattern_2: ... # we allow _ before the prefix |
| 10 |
__var_naming_pattern_3: ... # we allow __ before the prefix |
| 11 |
|
| 12 |
- name: include_task_with_vars | Var3 |
| 13 |
ansible.builtin.include_role: |
| 14 |
name: bobbins |
| 15 |
vars: |
| 16 |
bobbins_foo: bar |
| 17 |
# ^ this is valid because for include/import, the prefix should be of the |
| 18 |
# included role and from of the current role. |