summaryrefslogtreecommitdiffstats
path: root/examples/roles/var_naming_pattern/tasks/include_task_with_vars.yml
blob: 5151cd3142acf6255459460fdb66c7fa0cc39d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- name: include_task_with_vars | Foo
  ansible.builtin.include_tasks: ../tasks/included-task-with-vars.yml
  vars:
    var_naming_pattern_foo: bar

- name: include_task_with_vars | Foo
  ansible.builtin.include_role:
    name: bobbins
  vars:
    bobbins_foo: bar
    # ^ this is valid because for include/import, the prefix should be of the
    # included role and from of the current role.