-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- moved tests alongside rule definition - extend tests to include 2 more cases - included the newer "is changed" in the list of matching strings - made the description more verbose - included link to handlers documentation
- Loading branch information
Showing
7 changed files
with
61 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# should trigger no-handler rule 3 times | ||
- hosts: localhost | ||
name: foo | ||
roles: | ||
- {role: a-role} # 1st from within included role | ||
|
||
tasks: | ||
|
||
- name: execute something | ||
command: echo 123 | ||
register: result | ||
changed_when: true | ||
|
||
- name: this should trigger no-handler rule # 2nd | ||
command: echo could be done better | ||
when: result is changed | ||
|
||
- name: this should trigger no-handler rule # 3rd | ||
command: echo could be done better too | ||
when: result is changed |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
# should trigger no-handler at line 3 | ||
- name: do anything | ||
command: echo 123 | ||
when: | ||
- something.changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.