-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect type guessing for an included playbook #640
Comments
@bvergnaud did it work in 4.1? |
Yes it did. However the 4.1 will not install from source, in pre-commit. |
@bvergnaud ansible-lint 4.2.0rc2 has this fix included |
Wonderful. Thanks a lot. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Type
Ansible and Ansible Lint details
Desired Behaviour
When importing a playbook from within another playbook, ansible-lint should properly guess that it is a type playbook.
Actual Behaviour (Bug report only)
When you include a playbook in the pre-tasks sections (we need that secondary playbook to play before the roles) the linter guess its type as 'pre_tasks', and reports the following error multiple times in my case (I didn't manage to find what the number of error is based on):
Error trying to append skipped rules: RuntimeError('Unexpected file type: pre_tasks')
.Example playbook1.yml :
The included
playbook2.yml
is another playbook right next to the first one, and could contain anything.The error does not cause the return code to change which is lucky in my case as I'm trying to bake it in the pre-commit routine.
The text was updated successfully, but these errors were encountered: