-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Determine if passed arguments are playbooks or not
From now on, ansible-lint will no longer assume that a passed argument must be a playbook. This addressed multiple bug reports where people were confused that the linter reported errors when they passed a taskfile as an argument. The downside is that an invalid playbook that is a valid YAML file might not raise an error and just report a warning and be treated as a generic yaml file.
- Loading branch information
Showing
7 changed files
with
62 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -270,6 +270,8 @@ robertdebock | |
rolepath | ||
roundtrip | ||
ruamel | ||
rulebook | ||
rulebooks | ||
ruledirs | ||
rulesdir | ||
rulesdirs | ||
|
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,21 @@ | ||
--- | ||
# That file is not a valid playbook but it is a valid rulebook that was | ||
# mistakenly put under a playbook directory. | ||
- name: Demo rules with kafka as source | ||
hosts: localhost | ||
sources: | ||
- name: kafka | ||
kafka: | ||
topic: eda | ||
host: localhost | ||
port: 9092 | ||
group_id: testing | ||
rules: | ||
- name: | ||
condition: event.i is defined | ||
action: | ||
debug: | ||
- name: | ||
condition: event.stop == true | ||
action: | ||
shutdown: |
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,19 @@ | ||
--- | ||
- name: Demo rules with kafka as source | ||
hosts: localhost | ||
sources: | ||
- name: kafka | ||
kafka: | ||
topic: eda | ||
host: localhost | ||
port: 9092 | ||
group_id: testing | ||
rules: | ||
- name: | ||
condition: event.i is defined | ||
action: | ||
debug: | ||
- name: | ||
condition: event.stop == true | ||
action: | ||
shutdown: |
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 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