summaryrefslogtreecommitdiffstats
path: root/examples/.test_collection/roles
diff options
context:
space:
mode:
Diffstat (limited to 'examples/.test_collection/roles')
-rw-r--r--examples/.test_collection/roles/my_role/tasks/main.yml13
-rw-r--r--examples/.test_collection/roles/my_role2/tasks/main.yml4
2 files changed, 17 insertions, 0 deletions
diff --git a/examples/.test_collection/roles/my_role/tasks/main.yml b/examples/.test_collection/roles/my_role/tasks/main.yml
new file mode 100644
index 0000000..784a814
--- /dev/null
+++ b/examples/.test_collection/roles/my_role/tasks/main.yml
@@ -0,0 +1,13 @@
+---
+- name: Task
+ ansible.builtin.include_role:
+ name: example.test_collection.my_role2
+ vars:
+ my_role2_foo: something
+
+- name: Task 2
+ # this task should NOT trigger var-naming[no-role-prefix]
+ vars:
+ foo: bar
+ ansible.builtin.debug:
+ msg: "{{ foo }}"
diff --git a/examples/.test_collection/roles/my_role2/tasks/main.yml b/examples/.test_collection/roles/my_role2/tasks/main.yml
new file mode 100644
index 0000000..27954a5
--- /dev/null
+++ b/examples/.test_collection/roles/my_role2/tasks/main.yml
@@ -0,0 +1,4 @@
+---
+- name: Task
+ ansible.builtin.debug:
+ msg: "{{ my_role2_foo }}"