summaryrefslogtreecommitdiffstats
path: root/examples/.test_collection/roles
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:57 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:57 +0000
commit6321bd49c49eb2bb436cf7fb4842c4c424198de7 (patch)
treef34b66b4551dfe468bbcb29d0dcec5384556543b /examples/.test_collection/roles
parentAdding debian version 6.17.2-3. (diff)
downloadansible-lint-6321bd49c49eb2bb436cf7fb4842c4c424198de7.tar.xz
ansible-lint-6321bd49c49eb2bb436cf7fb4842c4c424198de7.zip
Merging upstream version 24.6.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 }}"