Warn about missing "roles:" #1072
Answered
by
ssbarnea
matkoniecz
asked this question in
Q&A
-
SummaryWarn where "roles" is missing and as result no action would be taken. (maybe there is a good reason to have something like that? in that case - sorry) Issue Type
Additional InformationAn actual example from something that triggered my attempt to find an Ansible linter:
|
Beta Was this translation helpful? Give feedback.
Answered by
ssbarnea
Dec 30, 2020
Replies: 1 comment
-
This file is invalid and the tool is already able to detect missing roles but there is a catch: you need to have playbooks that import these roles, as Ansible itself detects them. If you just have a random task file that includes the role and is not included in a playbooks or role, it will be ignored. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ssbarnea
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This file is invalid and the tool is already able to detect missing roles but there is a catch: you need to have playbooks that import these roles, as Ansible itself detects them. If you just have a random task file that includes the role and is not included in a playbooks or role, it will be ignored.