mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-24 13:50:41 +00:00
fix: add 'handlers' to allowed prevlines for CheckTaskSeparation (#249)
This commit is contained in:
parent
7278e11cd3
commit
81d33daa69
@ -24,7 +24,14 @@ class CheckTaskSeparation(StandardBase):
|
||||
prevline = "#file_start_marker"
|
||||
|
||||
allowed_prevline = [
|
||||
"---", "tasks:", "pre_tasks:", "post_tasks:", "block:", "rescue:", "always:"
|
||||
"---",
|
||||
"handlers:",
|
||||
"tasks:",
|
||||
"pre_tasks:",
|
||||
"post_tasks:",
|
||||
"block:",
|
||||
"rescue:",
|
||||
"always:",
|
||||
]
|
||||
|
||||
errors = task_errors + line_errors
|
||||
|
Loading…
Reference in New Issue
Block a user