summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/no_handler_pass.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/no_handler_pass.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 'examples/playbooks/no_handler_pass.yml')
-rw-r--r--examples/playbooks/no_handler_pass.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/playbooks/no_handler_pass.yml b/examples/playbooks/no_handler_pass.yml
index 5c44891..ea6d61d 100644
--- a/examples/playbooks/no_handler_pass.yml
+++ b/examples/playbooks/no_handler_pass.yml
@@ -82,3 +82,14 @@
ansible.builtin.debug:
msg: why isn't this a handler
when: result | changed
+
+ handlers:
+ # If this task would have being under 'tasks:' it should have triggered
+ # the rule, but under 'handlers:' it should not.
+ - name: Reproduce bug 3646
+ loop: "{{ _something_done.results }}"
+ loop_control:
+ label: "{{ item.item.name }}"
+ when: item.changed
+ ansible.builtin.debug:
+ msg: "{{ item.item.name }} changed"