summaryrefslogtreecommitdiffstats
path: root/examples/roles/var_naming_pattern/tasks/include_task_with_vars.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/roles/var_naming_pattern/tasks/include_task_with_vars.yml')
-rw-r--r--examples/roles/var_naming_pattern/tasks/include_task_with_vars.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/roles/var_naming_pattern/tasks/include_task_with_vars.yml b/examples/roles/var_naming_pattern/tasks/include_task_with_vars.yml
new file mode 100644
index 0000000..5151cd3
--- /dev/null
+++ b/examples/roles/var_naming_pattern/tasks/include_task_with_vars.yml
@@ -0,0 +1,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.