Skip to content

Commit 56da717

Browse files
authored
Document that no-changed-when also applies to handlers (#3237)
1 parent 1460131 commit 56da717

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ansiblelint/rules/no_changed_when.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ detect if a change has occurred or not. Some of the most common examples are
1212
[shell] and [command] modules, which run arbitrary commands.
1313

1414
One very common workaround is to use a boolean value like `changed_when: false`
15-
if the task never changes anything or `changed_when: true` if it always
16-
changes something, but you can also use any expressions, including ones that
17-
use the registered result of a task, like in our example below.
15+
if the task never changes anything or `changed_when: true` if it always changes
16+
something, but you can also use any expressions, including ones that use the
17+
registered result of a task, like in our example below.
18+
19+
This rule also applies to handlers, not only to tasks because they are also
20+
tasks.
1821

1922
## Problematic Code
2023

0 commit comments

Comments
 (0)