summaryrefslogtreecommitdiffstats
path: root/examples/roles/include_relative/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/roles/include_relative/tasks/main.yml')
-rw-r--r--examples/roles/include_relative/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/roles/include_relative/tasks/main.yml b/examples/roles/include_relative/tasks/main.yml
new file mode 100644
index 0000000..de69255
--- /dev/null
+++ b/examples/roles/include_relative/tasks/main.yml
@@ -0,0 +1,7 @@
+---
+# ansible allow paths relative to role directory
+- name: 1st include
+ ansible.builtin.include_tasks: tasks/included_file.yml
+# relative to the current file, same effect as previous line
+- name: 2nd include
+ ansible.builtin.include_tasks: included_file.yml