summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/var-naming/rule-var-naming-fail.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
commitba233a0cbad76b4783a03893e7bf4716fbc0f0ec (patch)
treead369728c1edbe3631c8150585659078ae5d7d0b /examples/playbooks/var-naming/rule-var-naming-fail.yml
parentReleasing progress-linux version 6.17.2-3~progress7.99u1. (diff)
downloadansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.tar.xz
ansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.zip
Merging upstream version 24.6.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--examples/playbooks/var-naming/rule-var-naming-fail.yml (renamed from examples/playbooks/rule-var-naming-fail.yml)12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/playbooks/rule-var-naming-fail.yml b/examples/playbooks/var-naming/rule-var-naming-fail.yml
index 888ed72..3861cd9 100644
--- a/examples/playbooks/rule-var-naming-fail.yml
+++ b/examples/playbooks/var-naming/rule-var-naming-fail.yml
@@ -30,3 +30,15 @@
ansible.builtin.debug:
var: test_var
register: CamelCaseIsBad # invalid 7
+
+ - name: This should not trigger due to role name being dynamic (jinja)
+ ansible.builtin.include_role:
+ name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
+ vars:
+ nginx_logrotate_conf_enable: true
+
+ - name: This should not trigger due to containing a dot in role name
+ ansible.builtin.include_role:
+ name: "foo.bar"
+ vars:
+ bar_foo: true